/* ==========================================================================
   Auth Page Styles - Modern Design with Glassmorphism
   ========================================================================== */

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

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

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

/* Auth Container */
.auth-container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-height: 650px;
}

/* Left Side - Branding */
.auth-branding {
    flex: 0 0 40%;
    max-width: 40%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.auth-branding::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2) 0%, transparent 70%);
    animation: pulse 5s ease-in-out infinite reverse;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.branding-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    margin-bottom: 30px;
}

.brand-logo .logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.brand-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.feature-item i {
    color: #4ade80;
    font-size: 18px;
}

/* Right Side - Auth Forms */
.auth-forms {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab i {
    font-size: 16px;
}

.auth-tab:hover {
    color: #374151;
}

.auth-tab.active {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Auth Messages */
.auth-messages {
    margin-bottom: 20px;
}

.auth-messages .alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    border: none;
}

/* Form Container */
.auth-form-container {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.3s ease;
}

.auth-form-container.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-header p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper>i {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

/* Select Wrapper */
.select-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 45px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #667eea;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Terms Notice */
.terms-notice {
    margin-bottom: 20px;
}

.terms-notice p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

/* Social Divider */
.social-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.social-divider span {
    padding: 0 15px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.btn-google {
    background: #ffffff;
    color: #374151;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #db4437;
    color: #db4437;
}

.btn-google i {
    font-size: 18px;
    color: #db4437;
}

.btn-google span {
    display: inline !important;
    visibility: visible !important;
    font-size: 15px;
    color: #374151;
}

.btn-google:hover span {
    color: #db4437;
}

/* Responsive Design */
@media (max-width: 991px) {
    .auth-section {
        padding: 20px;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        flex: none;
        max-width: 100%;
        padding: 40px 30px;
    }

    .auth-forms {
        flex: none;
        max-width: 100%;
        padding: 30px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 15px 10px;
    }

    .auth-branding {
        padding: 30px 20px;
    }

    .auth-forms {
        padding: 25px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        flex: none;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .brand-features {
        flex-direction: column;
    }

    .feature-item {
        flex: none;
    }

    .auth-tabs {
        flex-direction: column;
    }

    .auth-tab {
        justify-content: center;
    }
}

/* Form Error States */
.input-wrapper.error input,
.input-wrapper.error select {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
}

/* Loading State */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-auth.loading span {
    visibility: hidden;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}