/* Global Styles */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Auth Page Layout */
.auth-page {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 900px;
    max-width: 95vw;
    height: 600px;
    overflow: hidden;
}

/* Left Side - Branding */
.auth-left {
    flex: 1;
    background: #000000;
    color: #ffffff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Pattern */
.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

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

.brand-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.brand-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0 0 3rem 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: #4ade80;
    /* Green checkmark */
}

/* Right Side - Auth Forms */
.auth-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.auth-tab.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
    font-weight: 600;
}

.auth-tab:hover {
    color: #0f172a;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    /* Important for width: 100% */
}

.form-group input:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.code-input-group {
    display: flex;
    gap: 0.75rem;
}

.send-code-btn {
    white-space: nowrap;
    padding: 0 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.send-code-btn:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    color: #64748b;
    cursor: pointer;
    position: relative;
    padding-left: 1.5rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    border-color: #94a3b8;
}

.checkbox-container input:checked~.checkmark {
    background-color: #0f172a;
    border-color: #0f172a;
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-agreement {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.form-agreement a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #0f172a;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background: #1e293b;
    /* lighter black */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    min-height: 1.1em;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #0f172a;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        width: 100%;
        border-radius: 0;
    }

    .auth-left {
        padding: 2rem;
        flex: 0 0 auto;
    }

    .auth-right {
        padding: 2rem;
        flex: 1 1 auto;
    }

    .brand-tagline {
        margin-bottom: 2rem;
    }
}