/* Modern Minimalist Auth Pages - Professional Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Left Panel - Form */
.left-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.auth-section h1 {
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-section p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.5;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.form-input:hover {
    border-color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 12px 16px;
    background: #111827;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-family: inherit;
}

.btn-auth:hover {
    background: #1f2937;
}

.btn-auth:active {
    transform: scale(0.98);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
}

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

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

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

.logout-link {
    background: none;
    border: none;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.spam-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #d97706;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.spam-notice p {
    margin: 0;
    line-height: 1.5;
    color: #92400e;
}

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

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

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

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

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

/* Right Panel - Branding */
.right-panel {
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px;
    border-left: 1px solid #e5e7eb;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.brand-logo {
    height: auto;
    object-fit: contain;
}

.brand-logo-left {
    height: 45px;
    width: auto;
}

.brand-logo-right {
    height: 28px;
    width: auto;
}

.brand-description {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    font-weight: 400;
    max-width: 420px;
}

.brand-description br {
    display: block;
    content: "";
    margin-top: 16px;
}

.btn-dashboard {
    background: #059669;
}

.btn-dashboard:hover {
    background: #047857;
}

/* Password Toggle */
.password-input-container {
    position: relative;
    display: block;
}

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

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 4px;
    z-index: 10;
    height: 32px;
    width: 32px;
}

.password-toggle:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

    .container {
        padding: 20px;
    }

    .main-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: auto;
    }

    .left-panel {
        order: 0;
        padding: 40px 30px;
    }

    .right-panel {
        order: 1;
        padding: 40px 30px;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .auth-section h1 {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .auth-section p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .logos-container {
        margin-bottom: 24px;
        gap: 16px;
    }

    .brand-logo-left {
        height: 38px;
    }

    .brand-logo-right {
        height: 24px;
    }

    .brand-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-auth {
        padding: 14px 16px;
        margin-top: 20px;
    }

    .password-toggle {
        right: 10px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .left-panel {
        padding: 32px 24px;
    }

    .right-panel {
        padding: 32px 24px;
    }

    .auth-section h1 {
        font-size: 24px;
    }

    .brand-logo-left {
        height: 32px;
    }

    .brand-logo-right {
        height: 20px;
    }
}
