:root {
    --auth-bg-start: #0d1b2a;
    --auth-bg-end: #1a3044;
    --auth-title-color: #1a2f4e;
    --auth-subtitle-color: #5b9bd5;
    --auth-btn-login-bg: #1a3044;
    --auth-btn-login-color: #ffffff;
    --auth-btn-register-bg: #e8a020;
    --auth-btn-register-color: #1a2f4e;
    --auth-link-color: #5b9bd5;
    --auth-border: #e0e0e0;
}

html, body {
    height: 100%;
    margin: 0;
}

.auth-page-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--auth-bg-start), var(--auth-bg-end));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.auth-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--auth-border);
}

.auth-logo-placeholder {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auth-bg-start), var(--auth-bg-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--auth-title-color);
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--auth-subtitle-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-subtitle.muted {
    color: #888;
}

.auth-input {
    border-radius: 8px;
    border: 1px solid var(--auth-border);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--auth-subtitle-color);
    box-shadow: 0 0 0 3px rgba(91,155,213,0.15);
    outline: none;
}

.auth-validation {
    border-radius: 8px;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
    margin-bottom: 1rem;
}

.auth-field-error {
    color: #dc3545;
    font-size: 0.82rem;
    display: block;
    margin-top: 0.2rem;
}

.auth-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.btn-auth-login {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: var(--auth-btn-login-bg);
    color: var(--auth-btn-login-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-auth-login:hover { opacity: 0.88; }

.btn-auth-register {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: var(--auth-btn-register-bg);
    color: var(--auth-btn-register-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-auth-register:hover { opacity: 0.88; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid var(--auth-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.auth-divider {
    text-align: center;
    color: #aaa;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin: 1rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-link {
    color: var(--auth-link-color);
    text-decoration: none;
    font-size: 0.88rem;
}

.auth-link:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: #666;
}

.auth-footer a {
    color: var(--auth-link-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }
