@font-face {
    font-family: 'maziar';
    src: url('fonts/maziar.eot');
    src: local('☺'), url('fonts/maziar.woff') format('woff'),
         url('fonts/maziar.eot?#iefix') format('embedded-opentype'), 
         url('fonts/maziar.ttf') format('truetype'), 
         url('fonts/maziar.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

html, body {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    font: inherit;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   پس‌زمینه با رنگ‌های 0c354d و 7fbab4
   ============================================ */
body {
    background: linear-gradient(135deg, #0c354d 0%, #0c354d 30%, #7fbab4 70%, #0da797 100%);
    background-attachment: fixed;
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    position: relative;
    overflow-x: hidden;
}

/* انیمیشن حرکت گرادیان */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* افکت موج‌های نورانی در پس‌زمینه با رنگ 7fbab4 */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(125,186,180,0.15)" fill-opacity="0.5" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x bottom;
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    0% {
        background-position: 0% bottom;
    }
    100% {
        background-position: 200% bottom;
    }
}

/* حباب‌های متحرک با رنگ 0da797 و 7fbab4 */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: linear-gradient(135deg, rgba(13,167,151,0.2), rgba(125,186,180,0.1));
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(249,222,178,0.3);
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        bottom: 100%;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ذرات درخشان با رنگ f9deb2 */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(249,222,178,0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 10s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* نورهای محیطی با رنگ 0da797 */
.ambient-light {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,167,151,0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: ambientMove 20s infinite alternate;
}

.ambient-light-1 {
    top: -200px;
    left: -200px;
}

.ambient-light-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(125,186,180,0.15), transparent 70%);
    animation-delay: -10s;
}

@keyframes ambientMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

@import url('demo.css');

/* ============================================
   فرم لاگین با رنگ‌های 9e7f5e و f9deb2
   ============================================ */

.form-3 {
    font-family: 'maziar', 'Lato', sans-serif;
    font-weight: 400;
    width: 380px;
    position: relative;
    margin: 160px auto 30px;
    padding: 40px 30px 35px;
    overflow: hidden;
    background: rgba(12,53,77,0.7);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(249,222,178,0.2);
    box-shadow: 
        0 30px 60px -15px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(249,222,178,0.1);
    direction: rtl;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 70px -20px rgba(0,0,0,0.6);
    border-color: rgba(249,222,178,0.4);
    background: rgba(12,53,77,0.8);
}

/* خطوط نورانی دور فرم با رنگ‌های 0da797 و 7fbab4 و f9deb2 */
.form-3 .glow-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, 
        #0da797, #7fbab4, #f9deb2, #9e7f5e, #0da797);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 5s ease infinite;
}

.form-3:hover .glow-border {
    opacity: 0.5;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* حلقه نورانی مرکز فرم با رنگ 0da797 */
.form-3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(13,167,151,0.2), transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

.form-3:focus-within::before {
    width: 400px;
    height: 400px;
}

/* خط بالایی متحرک با رنگ f9deb2 */
.form-3::after {
    content: "";
    height: 2px;
    width: 100%;
    position: absolute;
    left: -100%;
    top: 0;
    background: linear-gradient(90deg, 
        transparent, 
        #f9deb2, 
        #0da797,
        #7fbab4,
        #f9deb2, 
        transparent);
    animation: lineSlide 4s linear infinite;
}

@keyframes lineSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.form-3 label {
    width: 30%;
    float: right;
    padding-top: 12px;
    color: #f9deb2;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-indent: 5px;
    cursor: pointer;
    font-family: 'maziar', sans-serif;
    transition: all 0.3s ease;
}

.form-3 label:hover {
    color: #7fbab4;
    transform: translateX(-3px);
}

.form-3 input[type=text],
.form-3 input[type=password] {
    width: 70%;
    float: left;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-size: 13px;
    background: rgba(12,53,77,0.6);
    border: 1px solid rgba(249,222,178,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(249,222,178,0.05);
    border-radius: 12px;
    font-family: 'maziar', 'Lato', sans-serif;
    color: #f9deb2;
    transition: all 0.3s ease;
}

.form-3 input[type=text]:hover,
.form-3 input[type=password]:hover {
    background: rgba(12,53,77,0.8);
    border-color: rgba(13,167,151,0.5);
}

.form-3 input[type=text]:focus, 
.form-3 input[type=password]:focus {
    box-shadow: 0 0 20px rgba(13,167,151,0.3), inset 0 0 5px rgba(0,0,0,0.2);
    background: rgba(12,53,77,0.9);
    border-color: #0da797;
    outline: none;
    color: #fff;
}

.form-3 p:nth-child(4),
.form-3 p:nth-child(5) {
    float: left;
    width: 100%;
}

.form-3 input[type=submit] {
    width: 100%;
    padding: 12px 5px;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(13,167,151,0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, #0da797, #7fbab4, #9e7f5e);
    background-size: 200% 200%;
    cursor: pointer;
    font-family: 'maziar', 'Lato', sans-serif;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: btnGradient 4s ease infinite;
}

@keyframes btnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* افکت موج روی دکمه */
.form-3 input[type=submit]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(249,222,178,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.form-3 input[type=submit]:hover::before {
    width: 350px;
    height: 350px;
}

.form-3 input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13,167,151,0.5);
    filter: brightness(1.05);
}

.form-3 input[type=submit]:active {
    transform: translateY(2px);
}

/* خط نورانی زیر فرم با رنگ f9deb2 */
.ripple-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #f9deb2, 
        #0da797,
        #7fbab4,
        #f9deb2, 
        transparent);
    animation: bottomRipple 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-3:hover .ripple-bottom {
    opacity: 0.7;
}

@keyframes bottomRipple {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.tanzimlogo {
    text-align: center;
    margin: -20px auto 25px auto;
    width: 130px;
    position: relative;
}

.tanzimlogo img {
    width: 130px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
    transition: all 0.4s ease;
}

.tanzimlogo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 25px rgba(13,167,151,0.5));
}

/* انیمیشن ورود فرم */
@keyframes formAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-3 {
    animation: formAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* پیام نتیجه */
#result {
    font-size: 13px;
    margin-top: 15px;
    font-family: 'maziar', sans-serif;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .form-3 {
        width: 90%;
        margin: 100px auto 30px;
        padding: 30px 20px;
    }
    
    .form-3 label {
        font-size: 12px;
        padding-top: 10px;
        width: 35%;
    }
    
    .form-3 input[type=text],
    .form-3 input[type=password] {
        width: 65%;
        padding: 8px 10px;
        font-size: 12px;
    }
}