/* auth.css - Modern Standalone Auth Pages */
/* Brand colors: #3F6200 (dark green), #9EC347 (light green) */

/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Full-page background */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    max-width: 200px;
    height: auto;
}

.auth-logo h1 {
    color: #3F6200;
    font-size: 24px;
    margin: 10px 0 0 0;
}

/* Card container */
.auth-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-container h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-align: center;
}

.auth-container .subtitle {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* Form */
.auth-form {
    margin-top: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: #5a8a0a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 98, 0, 0.15);
}

.form-group input.error {
    border-color: #e53935;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* Checkbox styling */
.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #3F6200;
}

.form-group.checkbox a {
    color: #3F6200;
    text-decoration: none;
    font-weight: 500;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-error {
    background-color: #FFEBEE;
    border-left: 4px solid #e53935;
    color: #c62828;
}

.alert-success {
    background-color: #E8F5E9;
    border-left: 4px solid #43A047;
    color: #2E7D32;
}

.alert h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.alert p {
    margin: 0;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background: rgb(107, 158, 0);
    color: #ffffff;
}

.btn-primary:hover {
    background: rgb(95, 140, 0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 158, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Auth Links */
.auth-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
    color: #666;
}

.auth-links a {
    color: #3F6200;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Turnstile CAPTCHA */
.form-group .cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* Back to site link */
.back-to-site {
    text-align: center;
    margin-top: 20px;
}

.back-to-site a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.back-to-site a:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 15px;
    }

    .auth-container {
        padding: 30px 25px;
    }

    .auth-container h1 {
        font-size: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }
}
