/* Auth Pages Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 20%, #f3f4f6 40%, #e5e7eb 70%, #d1d5db 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

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

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.main-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 28px;
    padding: 0;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    box-shadow: 0 30px 60px rgba(71, 85, 105, 0.15);
    position: relative;
    overflow: hidden;
}

.left-panel {
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.right-panel {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 60px;
    position: relative;
    color: #1e293b;
    border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(30, 41, 59, 0.1);
}

.auth-section p {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: rgba(100, 116, 139, 0.6);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 25px rgba(71, 85, 105, 0.15);
    transform: translateY(-3px);
}

.btn-auth {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
}

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

.btn-auth::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.5s;
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #4b5563;
    font-size: 1rem;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #1d4ed8;
}

.forgot-password-link {
    margin-bottom: 15px;
}

.logout-link {
    background: none;
    border: none;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.logout-link:hover {
    color: #1d4ed8;
}

.error-message {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.success-message {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.spam-notice {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #f59e0b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.spam-notice p {
    margin: 0;
    line-height: 1.5;
}

.spam-notice strong {
    color: #d97706;
    font-weight: 600;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #374151;
}

.terms-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
}

.terms-checkbox a {
    color: #2563eb;
    text-decoration: none;
}

.terms-checkbox a:hover {
    color: #1d4ed8;
}

.logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 50px;
    gap: 20px;
}

.brand-logo {
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(71, 85, 105, 0.1));
    object-fit: contain;
}

.brand-logo-left {
    height: 50px;
    width: auto;
    max-width: 215px;
}

.brand-logo-right {
    height: 25px;
    width: auto;
    max-width: 200px;
}

.brand-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 60px;
    line-height: 1.7;
    color: #374151;
    text-align: center;
    max-width: 400px;
}

.features-list {
    text-align: left;
    width: 100%;
    max-width: 320px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.95rem;
    opacity: 0.95;
    color: #374151;
    transition: all 0.3s ease;
}

.feature-item:hover {
    opacity: 1;
    transform: translateX(5px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(100, 116, 139, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 12px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    left: 5%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    left: 85%;
    animation-delay: 8s;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 65%;
    animation-delay: 16s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120px) rotate(360deg);
        opacity: 0;
    }
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.btn-dashboard {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 20px 10px;
    }

    .main-card {
        grid-template-columns: 1fr;
        max-width: 420px;
        min-height: auto;
        margin: 10px;
        box-shadow: 0 20px 40px rgba(71, 85, 105, 0.15);
    }

    .right-panel {
        order: 1;
        padding: 30px 25px;
        min-height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        margin-top: 20px;
    }

    .left-panel {
        order: 0;
        padding: 30px 25px;
        min-height: auto;
    }

    .auth-section h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .auth-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .logos-container {
        max-width: 280px;
        margin-bottom: 20px;
        gap: 15px;
    }

    .brand-logo-left,
    .brand-logo-right {
        width: auto;
        max-width: 120px;
        height: 40px;
        object-fit: contain;
    }

    .brand-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .features-list {
        max-width: 280px;
    }

    .feature-item {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .feature-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 12px;
    }

    .form-input {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .btn-auth {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .auth-footer {
        margin-top: 20px;
        font-size: 0.9rem;
    }
}

/* Password Toggle Styles */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 50px !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 6px;
    z-index: 10;
}

.password-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.password-icon {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.password-toggle:hover .password-icon {
    transform: scale(1.1);
}

/* Dark theme support for password toggle */
@media (prefers-color-scheme: dark) {
    .password-toggle {
        color: #9ca3af;
    }

    .password-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #d1d5db;
    }
}

/* Mobile responsiveness for password toggle */
@media (max-width: 768px) {
    .password-toggle {
        right: 12px;
        padding: 8px;
    }

    .password-input {
        padding-right: 45px !important;
    }
}

/* Extra small mobile devices (phones in portrait) */
@media (max-width: 480px) {
    .logos-container {
        max-width: 240px;
        margin-bottom: 15px;
        gap: 10px;
    }

    .brand-logo-left,
    .brand-logo-right {
        height: 30px;
        max-width: 100px;
    }

    .brand-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
}
