/**
 * Gorilla Reports — Auth Stylesheet (auth.css)
 * 
 * Styles for login, magic link sent, and expired link pages.
 * Extracted from 01-login.html template.
 */

:root {
    --gm-primary: #136800;
    --gm-primary-light: #1a8a00;
    --gm-primary-dark: #0d4f00;
    --gm-yellow: #F5C614;
    --gm-yellow-hover: #e0b312;
    --gm-dark-bg: #0D0D0D;
    --gm-card-light: #ffffff;
    --gm-content-bg: #f4f5f7;
    --gm-border-light: #e2e5ea;
    --gm-border-dark: #333333;
    --gm-text-primary: #1A1A1A;
    --gm-text-secondary: #6b7280;
    --gm-text-muted: #999999;
    --gm-text-white: #FFFFFF;
    --gm-red: #dc2626;
    --radius-btn: 45px;
    --radius-card: 14px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gm-dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 0 1.5rem;
    text-align: center;
}

.login-logo { margin-bottom: 2rem; }
.login-logo img { height: 42px; width: auto; }

/* Mode Switcher */
.mode-switcher {
    display: flex;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gm-border-dark);
    border-radius: var(--radius-btn);
    padding: 3px;
    margin-bottom: 1.75rem;
    gap: 2px;
}

.mode-btn {
    flex: 1;
    padding: .5625rem 1rem;
    border-radius: var(--radius-btn);
    border: none;
    background: transparent;
    color: var(--gm-text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
}

.mode-btn:hover { color: var(--gm-text-white); }

.mode-btn.active-team {
    background: var(--gm-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(19,104,0,.3);
}

.mode-btn.active-client {
    background: var(--gm-yellow);
    color: #000;
    box-shadow: 0 2px 8px rgba(245,198,20,.3);
}

/* Card */
.login-card {
    background: var(--gm-card-light);
    border-radius: var(--radius-card);
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    text-align: center;
}

.login-card h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gm-text-primary);
    margin-bottom: .25rem;
}

.login-subtitle {
    font-size: .8125rem;
    color: var(--gm-text-secondary);
    margin-bottom: 1.75rem;
    font-weight: 400;
}

/* Form */
.login-form { text-align: left; }

.form-label-login {
    font-size: .75rem;
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: .375rem;
    display: block;
}

.form-input-login {
    width: 100%;
    background: var(--gm-content-bg);
    border: 1px solid var(--gm-border-light);
    border-radius: var(--radius-sm);
    padding: .6875rem 1rem;
    font-size: .875rem;
    font-family: 'Poppins', sans-serif;
    color: var(--gm-text-primary);
    outline: none;
    transition: border-color .15s;
}

.form-input-login:focus { border-color: var(--gm-primary); }
.form-input-login::placeholder { color: var(--gm-text-muted); }

/* Buttons */
.btn-magic-team {
    width: 100%;
    padding: .75rem 1.5rem;
    background: var(--gm-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Poppins', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
}

.btn-magic-team:hover { background: var(--gm-primary-light); }
.btn-magic-team:disabled { opacity: .6; cursor: not-allowed; }

.btn-magic-client {
    width: 100%;
    padding: .75rem 1.5rem;
    background: var(--gm-yellow);
    color: #000;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Poppins', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
}

.btn-magic-client:hover { background: var(--gm-yellow-hover); }
.btn-magic-client:disabled { opacity: .6; cursor: not-allowed; }

/* Restricted Notice */
.restricted-notice {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem .875rem;
    background: var(--gm-content-bg);
    border: 1px solid var(--gm-border-light);
    border-radius: var(--radius-sm);
    font-size: .75rem;
    color: var(--gm-text-secondary);
    line-height: 1.5;
    text-align: left;
    margin-top: 1.25rem;
}

.restricted-notice i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.restricted-notice.team-notice i { color: var(--gm-primary); }
.restricted-notice.client-notice i { color: var(--gm-yellow); }
.restricted-notice strong { color: var(--gm-text-primary); font-weight: 600; }

/* Error */
.login-error {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem .875rem;
    background: rgba(220,38,38,.06);
    border: 1px solid rgba(220,38,38,.15);
    border-radius: var(--radius-sm);
    font-size: .8125rem;
    color: var(--gm-red);
    margin-bottom: 1.25rem;
    text-align: left;
}

.login-error i { flex-shrink: 0; }

/* Success (check inbox) */
.login-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto .875rem;
}

.login-success-icon.team { background: rgba(19,104,0,.08); color: var(--gm-primary); }
.login-success-icon.client { background: rgba(245,198,20,.12); color: #b8930e; }

.login-success h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gm-text-primary);
    margin-bottom: .25rem;
}

.login-success p {
    font-size: .8125rem;
    color: var(--gm-text-secondary);
    margin-bottom: .25rem;
}

.email-display {
    font-size: .875rem;
    font-weight: 600;
    color: var(--gm-text-primary);
    margin: .75rem 0;
}

.expiry-note {
    font-size: .6875rem;
    color: var(--gm-text-muted);
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

.resend-link {
    font-size: .75rem;
    color: var(--gm-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

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

/* Footer */
.login-footer {
    margin-top: 2rem;
    font-size: .75rem;
    color: var(--gm-text-muted);
}

.login-footer a {
    color: var(--gm-primary-light);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover { text-decoration: underline; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; display: inline-block; }
