@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

:root {
    --color-primary: #00171e;
    --color-surface: #ffffff;
    --color-bg-dark: #081d24;
    --color-text-dark: #1a1c1c;
    --color-text-muted: #72787b;
    --color-border: #c2c7ca;
    --color-input-bg: #f3f5f6;
    --color-error: #ba1a1a;
    --color-success: #127c54;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body, html {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-text-dark);
    overflow: hidden;
}

.auth-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.auth-left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow-y: auto;
    background-color: var(--color-surface);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-form-wrapper h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.auth-form-wrapper .subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.auth-form-wrapper .subtitle a {
    color: #006783;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-wrapper .subtitle a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.input-control {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-input-bg);
    color: var(--color-text-dark);
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.input-control:focus {
    border-color: var(--color-primary);
    background-color: #ffffff;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .input-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--color-text-dark);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.forgot-link {
    color: #006783;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #122c34;
}

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

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

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

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

.btn-google {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-google:hover {
    background-color: #f7f9fa;
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.alert-danger {
    background-color: #ffdad6;
    color: var(--color-error);
    border: 1px solid #ffb4ab;
}

.alert-success {
    background-color: #d1e7dd;
    color: var(--color-success);
    border: 1px solid #badbcc;
}

.auth-right {
    flex: 0 0 55%;
    background-color: var(--color-bg-dark);
    background-image: radial-gradient(circle at 80% 20%, #122c34 0%, var(--color-bg-dark) 80%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #ffffff;
    text-align: center;
    position: relative;
    border-left: 1px solid var(--color-primary);
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 500px;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-logo {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

.brand-subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .auth-right {
        display: none;
    }
    .auth-left {
        flex: 0 0 100%;
        padding: 2rem;
    }
}
