/* PIAS-58: Google Fonts import moved to HTML for CSP compliance */

:root {
    /* Color Palette */
    --primary-green: #00a651;
    --primary-red: #d02e31;
    --neutral-black: #000000;
    --neutral-white: #ffffff;
    
    /* Light Theme Colors */
    --text-primary: #212B36;
    --text-secondary: #637381;
    --background-light: #F9FAFB;
    --background-white: #ffffff;
    --border-light: #E5E8EB;
    --shadow-color: rgba(0, 0, 0, 0.05);

    /* Font */
    --font-family-base: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #F9FAFB;
    --text-secondary: #B0B8C1;
    --background-light: #1a1d23;
    --background-white: #242831;
    --border-light: #3a3f4b;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* --- Global Styles --- */
body {
    font-family: var(--font-family-base);
    background-color: var(--background-light);
    color: var(--text-primary);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Extra Bold */
    margin-bottom: 0.5em;
}

p {
    font-weight: 400; /* Regular */
    line-height: 1.6;
    margin-bottom: 1em;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500; /* Medium */
}

a:hover {
    text-decoration: underline;
}

/* --- Layout & Components --- */
.main-container {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    /*background: linear-gradient(90deg, rgba(237, 28, 36, 0.31), rgba(0, 166, 81, 0.31));*/
    background-color: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    max-width: 380px;
    height: auto;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600; /* Medium-Bold */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--neutral-white);
}

.btn-primary:hover {
    background-color: #008742; /* Darker green */
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500; /* Medium */
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family-base);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: left;
}

.alert-error {
    background-color: rgba(208, 46, 49, 0.1); /* --primary-red with alpha */
    color: var(--primary-red);
}

.alert-success {
    background-color: rgba(0, 166, 81, 0.1); /* --primary-green with alpha */
    color: var(--primary-green);
}

[data-theme="dark"] .alert-error {
    background-color: rgba(94, 16, 16, 0.425);
    color: #fca5a5;
    font-weight: 500;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(19, 107, 51, 0.2);
    color: #86efac;
    font-weight: 500;
}

footer {
    width: 100%;
    max-width: 480px;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

footer a {
    color: var(--text-secondary);
    font-weight: 500; /* Medium */
}

/* PIAS-58: Login page specific styles (moved from inline styles) */
.login-container {
    max-width: 400px;
    text-align: center;
}

.login-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-container p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.forgot-password {
    text-align: right;
    margin-top: -16px;
    margin-bottom: 24px;
}

.forgot-password a {
    font-size: 14px;
    font-weight: 500;
}

/* PIAS-58: Login footer styles */
.login-footer {
    position: relative;
}

/* PIAS-58: Error page styles (moved from inline styles) */
.error-code {
    font-size: 80px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-red);
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.error-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-home-btn {
    width: 200px;
}

/* PIAS-58: OAuth2 consent page styles */
.consent-footer-links {
    margin-top: 0.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--background-white);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Smooth transitions for theme changes */
body,
.main-container,
.form-group input,
.btn,
.alert {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
} 