:root {
    --primary: #28335f;
    --primary-dark: #1f294d;
    --secondary: #4f6ef7;
    --accent: #14b8a6;
    --background: #f5f7fb;
    --surface: #ffffff;
    --border: #e4e8f0;
    --text-main: #1f2a44;
    --text-muted: #6b7280;
    --danger: #dc2626;
    --shadow: 0 18px 50px rgba(31, 42, 68, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Alexandria', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(79,110,247,0.10), transparent 25%),
        radial-gradient(circle at bottom left, rgba(20,184,166,0.08), transparent 20%),
        var(--background);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-brand {
    background: linear-gradient(180deg, var(--primary) 0%, #34437d 100%);
    color: #fff;
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 25%);
    pointer-events: none;
}

.brand-top,
.brand-bottom {
    position: relative;
    z-index: 1;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.brand-logo {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
}

.brand-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.brand-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}

.brand-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,0.86);
    max-width: 520px;
}

.brand-points {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.brand-point {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    color: rgba(255,255,255,0.92);
}

.brand-footer {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin:20px; 
}

.auth-form-side {
    padding: 42px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-card {
    width: 100%;
    max-width: 430px;
}

.auth-card-header {
    margin-bottom: 28px;
    text-align: right;
}

.auth-card-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.auth-card-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 15px;
    color: var(--text-main);
    background: #fff;
    transition: 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(79,110,247,0.12);
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.remember-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.remember-box input {
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
}

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #3e5295 100%);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(40,51,95,0.18);
}

.error-box,
.status-box {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.8;
}

.error-box {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-box {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-footer-note {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 30px 24px;
    }

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

    .auth-form-side {
        padding: 30px 22px;
    }
}

@media (max-width: 540px) {
    body {
        padding: 14px;
    }

    .auth-wrapper {
        border-radius: 20px;
    }

    .brand-logos {
        justify-content: center;
    }

    .brand-title,
    .brand-subtitle,
    .brand-footer {
        text-align: center;
    }

    .auth-card-header {
        text-align: center;
    }

    .remember-row {
        flex-direction: column;
        align-items: stretch;
    }

    .forgot-link {
        text-align: center;
    }
}