/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', system-ui, sans-serif;
}

/* VARIABLES */
:root {
    --green-main: #00b98e;
    --green-dark: #059669;
    --green-soft: #d1fae5;
    --text-dark: #0f172a;
    --text-soft: #64748b;
    --white: #ffffff;
}

/* BODY */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    color: var(--text-dark);
}

/* HEADER */
.auth-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 40px;
    background: transparent;
}

.auth-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switch a {
    color: var(--text-soft);
    text-decoration: none;
    margin-left: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
}

.lang-switch a.active,
.lang-switch a:hover {
    opacity: 1;
    color: var(--green-main);
}

/* MAIN */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* CONTAINER */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 22px;
    padding: 44px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.12);
}

/* BRAND */
.login-brand h1 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--green-main);
}

.login-brand span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-soft);
    text-transform: uppercase;
}

/* SUBTITLE */
.login-subtitle {
    margin: 18px 0 36px;
    font-size: 0.9rem;
    color: #475569;
}

/* FORM */
.form-group {
    position: relative;
    margin-bottom: 26px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border .25s, box-shadow .25s;
}

.form-group input:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 4px rgba(0,185,142,0.15);
}

/* FLOAT LABEL */
.form-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-soft);
    pointer-events: none;
    transition: 0.3s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 0.65rem;
    background: var(--white);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--green-main);
}

/* OPTIONS */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 30px;
    color: var(--text-soft);
}

.login-options a {
    color: var(--green-main);
    font-weight: 600;
    text-decoration: none;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: none;
    background: var(--green-main);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.login-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,185,142,0.35);
}

/* VALIDATION ERRORS */
.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 0.65rem;
    color: #dc2626;
}

.form-group input.is-invalid {
    border-color: #dc2626;
}

.login-brand img {
    max-width: 180px;
    width: 100%;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

/* GOOGLE BUTTON */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #020617;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
    margin-bottom: 20px;
}

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

.google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 12px;
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

.auth-logo img {
    height: 55px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}
