/**
 * Login Modal Styles
 */

/* Modal Backdrop */
.login-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.login-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Main Wrapper */
.login-form__wrapper {
    max-width: 480px;
    width: 100%;
    background: linear-gradient(135deg, #1a1d24 0%, #0f1117 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.login-form__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form__close-icon-wr {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-form__close:hover .login-form__close-icon-wr {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    transform: rotate(90deg);
}

.login-form__close-icon {
    font-size: 24px;
    color: #fff;
}

/* Form Panel */
.login-form__panel {
    padding: 50px 40px 40px;
}

.login-form__header {
    margin-bottom: 30px;
    text-align: center;
}

.login-form__title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form__body {
    flex: 1;
}

.login-form__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Fields */
.login-form__inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-field {
    position: relative;
}

.input-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 56px;
}

.input-field__wrap:focus-within {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.input-field__prepend-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    flex-shrink: 0;
}

.input-field__wrap:focus-within .input-field__prepend-icon {
    color: #d4af37;
}

.input-field__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 0 16px 0 0;
    height: 100%;
}

.input-field__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Animated Label */
.input-field__label-anim {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
}

.input-field__input:focus + .input-field__label-anim,
.input-field__input:not(:placeholder-shown) + .input-field__label-anim {
    top: -2px;
    left: 50px;
    font-size: 12px;
    color: #d4af37;
    background: #1a1d24;
}

/* Password Eye Toggle */
.input-field__pseudo-pas-eye {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.input-field__pseudo-pas-eye-ic {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.input-field__pseudo-pas-eye:hover .input-field__pseudo-pas-eye-ic {
    color: #d4af37;
}

/* Error Text */
.error-text {
    color: #ff4444;
    font-size: 12px;
    margin: 6px 0 0 16px;
    display: none;
}

.error-text:not(:empty) {
    display: block;
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Submit Button */
.login-form__button {
    margin-top: 10px;
}

.btn--primary-b {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn--primary-b:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

.btn--primary-b:active {
    transform: translateY(0);
}

/* Social Login */
.login-social {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-social__separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-social__list {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon__icon {
    font-size: 20px;
    color: #fff;
}

.social-icon--google:hover {
    background: rgba(219, 68, 55, 0.1);
    border-color: #DB4437;
}

.social-icon--telegram:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: #0088cc;
}

/* Register Link */
.login-form__register {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.login-form__register-link {
    color: #d4af37;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-form__register-link:hover {
    color: #f4d03f;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-modal-backdrop {
        padding: 10px;
    }

    .login-form__wrapper {
        border-radius: 12px;
    }

    .login-form__panel {
        padding: 40px 20px 30px;
    }

    .login-form__title {
        font-size: 26px;
    }

    .login-form__inputs {
        gap: 12px;
    }

    .input-field__wrap {
        height: 50px;
    }

    .input-field__prepend-icon,
    .input-field__pseudo-pas-eye {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .input-field__input {
        font-size: 14px;
    }

    .input-field__label-anim {
        font-size: 14px;
    }

    .btn--primary-b {
        height: 50px;
        font-size: 15px;
    }

    .login-form__close {
        top: 10px;
        right: 10px;
    }

    .login-form__close-icon-wr {
        width: 35px;
        height: 35px;
    }

    .login-form__close-icon {
        font-size: 20px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon__icon {
        font-size: 18px;
    }

    .login-social {
        margin-top: 15px;
        gap: 12px;
    }

    .login-form__register {
        margin-top: 15px;
        font-size: 13px;
    }
}
