﻿/* Form container styles */
.auth-form-container {
    position: relative;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: authFormReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    margin-bottom: 50px;
}

    .auth-form-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, .play__field, 0.1), transparent);
        animation: authFormShimmer 4s ease-in-out infinite;
    }

@keyframes authFormReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Input field styles */
.auth-input-wrapper {
    position: relative;
    margin-bottom: 24px;
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

    .auth-input-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .auth-input-wrapper:nth-child(2) {
        animation-delay: 0.2s;
    }

    .auth-input-wrapper:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes authInputSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .auth-input:focus {
        border-color: #41CAC2;
        background: rgba(65, 202, 194, 0.1);
        box-shadow: 0 0 0 4px rgba(65, 202, 194, 0.1), 0 0 20px rgba(65, 202, 194, 0.2);
        transform: translateY(-2px);
    }

    .auth-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

/* Floating label animation */
.auth-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 6px;
    z-index: 1;
}

.auth-input:focus ~ .auth-label,
.auth-input:not(:placeholder-shown) ~ .auth-label {
    top: -10px;
    left: 16px;
    font-size: 12px;
    color: #41CAC2;
}

/* Checkbox styles */
.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.auth-checkbox-container {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.auth-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.auth-checkbox-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-checkbox-container:hover .auth-checkbox-visual {
    border-color: #41CAC2;
    background: rgba(65, 202, 194, 0.1);
}

.auth-checkbox-input:checked ~ .auth-checkbox-visual {
    background: linear-gradient(135deg, #41CAC2, #866efb);
    border-color: #41CAC2;
    animation: authCheckPulse 0.3s ease-out;
}

@keyframes authCheckPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.auth-checkbox-visual::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-checkbox-input:checked ~ .auth-checkbox-visual::after {
    display: block;
    animation: authCheckMark 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authCheckMark {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }

    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.auth-checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.65s backwards;
    font-size: 16px;
}

    .auth-checkbox-label a {
        color: #41CAC2;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }

        .auth-checkbox-label a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #41CAC2, #866efb);
            transition: width 0.3s ease;
        }

        .auth-checkbox-label a:hover {
            color: #c021c3;
        }

            .auth-checkbox-label a:hover::after {
                width: 100%;
            }

/* Button styles */
.auth-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #41CAC2, #866efb);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 24px 0 16px;
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
    box-shadow: 0 10px 25px rgba(65, 202, 194, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .auth-submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .auth-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(65, 202, 194, 0.4);
    }

        .auth-submit-btn:hover::before {
            left: 100%;
        }

    .auth-submit-btn:active {
        transform: translateY(-1px);
    }

/* Divider styles */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.55s backwards;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    }

    .auth-divider span {
        padding: 0 20px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Social login button */
.auth-social-btn {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .auth-social-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

/* Redirect link styles */
.auth-redirect {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 16px;
    animation: authInputSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.65s backwards;
}

    .auth-redirect a {
        color: #41CAC2;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }

        .auth-redirect a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #41CAC2, #866efb);
            transition: width 0.3s ease;
        }

        .auth-redirect a:hover {
            color: #c021c3;
        }

            .auth-redirect a:hover::after {
                width: 100%;
            }

/* Error message styles */
.auth-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-bottom: 40px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    animation: authErrorShake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authErrorShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Logo animation */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
    animation: authLogoFade 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-logo-text {
    font-family: "SegoeUIBlack-Italic", sans-serif;
    font-size: clamp(28px, 9vw, 148px);
    font-weight: 900;
    background: linear-gradient(45deg, #41CAC2, #c021c3, #866efb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: authGradientFlow 3s ease infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes authLogoFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.play__field {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 500px !important;
}


/* Responsive design */
@media (max-width: 768px) {
    .auth-form-container {
        padding: 32px 24px;
        margin: 0 16px;
    }


    .auth-submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

/* Header animation */
.head__part {
    animation: authHeaderSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authHeaderSlide {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content fade in */
.main__part {
    animation: authMainFade 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes authMainFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
