:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
}

.account-page-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    overflow-y: auto;
    background-color: var(--bg-color);
}

/* Left Brand Section */
.account-brand-section {
    display: none;
    width: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

@media (min-width: 1024px) {
    .account-brand-section {
        display: flex;
    }
}

.brand-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 150%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-quote {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    max-width: 30rem;
}

.brand-caption {
    margin-top: 1.5rem;
    opacity: 0.9;
    font-size: 1rem;
}

/* Right Form Section */
.account-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--card-bg);
}

.account-card {
    width: 100%;
    max-width: 440px;
}

.account-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.account-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.account-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form Elements */
.form-floating {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-control {
    display: block;
    width: 100%;
    height: 3.5rem;
    padding: 1.625rem 1rem 0.625rem !important;
    /* Force padding */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 1rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: var(--text-muted);
}

.form-control:focus~label,
.form-control:not(:placeholder-shown)~label {
    opacity: .85;
    transform: scale(.85) translateY(-0.75rem) translateX(0.15rem);
}

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    text-transform: none;
    /* override boilerplate if any */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

/* Links */
.account-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.925rem;
}

.account-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.account-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.text-danger {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.d-none {
    display: none !important;
}

.d-grid {
    display: grid;
}


/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1.25em;
    height: 1.25em;
    top: 50%;
    left: 50%;
    margin-top: -0.625em;
    margin-left: -0.625em;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}