/* ==========================================================================
   SOON Login Page Styles
   Design tokens derived from the SOON frontend design system
   ========================================================================== */

:root {
    --color-primary: #e45800;
    --color-blue-dark: #005697;
    --color-blue-light: #daedf9;
    --color-text: #212121;
    --color-border: #daedf9;
    --color-error: #C42144;
    --color-white: #ffffff;
    --font-family: 'Nunito', sans-serif;
    --radius-input: 8px;
    --radius-button: 800px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html,
body {
    height: 100%;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Layout: Two-column
   ========================================================================== */

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-blue-light) 0%, var(--color-white) 100%);
}

.login-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.login-logo {
    width: 500px;
    height: auto;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 32px;
}

/* ==========================================================================
   Form
   ========================================================================== */

.login-form {
    display: flex;
    flex-direction: column;
}

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

.form-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    height: 57px;
    padding: 0 16px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--color-blue-dark);
}

.form-input::placeholder {
    color: #999;
}

/* ==========================================================================
   Links
   ========================================================================== */

.forgot-password-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-blue-dark);
    text-decoration: underline;
}

.forgot-password-link:hover {
    text-decoration: none;
}

.create-account-text {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
}

.create-account-link {
    color: var(--color-blue-dark);
    text-decoration: underline;
}

.create-account-link:hover {
    text-decoration: none;
}

/* ==========================================================================
   Button
   ========================================================================== */

.login-button {
    width: 100%;
    height: 57px;
    padding: 16px 24px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #c94d00;
}

.login-button:focus-visible {
    outline: 2px solid var(--color-blue-dark);
    outline-offset: 2px;
}

.register-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 32px;
}

/* ==========================================================================
   Validation & Errors
   ========================================================================== */

.login-error-summary {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #fef2f4;
    border: 1px solid var(--color-error);
    border-radius: var(--radius-input);
}

.login-error-list {
    list-style: none;
    color: var(--color-error);
    font-size: 14px;
}

.login-error-list li {
    margin-bottom: 4px;
}

.login-error-list li:last-child {
    margin-bottom: 0;
}

.field-validation-error {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--color-error);
}

/* ==========================================================================
   Responsive: Stack on mobile
   ========================================================================== */

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        flex: none;
        min-height: 200px;
        padding: 32px;
    }

    .login-logo {
        width:400px;
        max-width: 100%;
    }

    .login-right {
        flex: 1;
        padding: 32px 24px;
    }
}
