/**
 * Cedar Springs Camp - Authentication Pages Shared Styles
 *
 * Shared CSS for login, forgot password, forgot username, and reset password pages
 * Dark theme with red/gold accent colors
 */

:root {
    --primary: #233237;
    --secondary: #4B4B4B;
    --dark: #322337;
    --logo-red: #8e191e;
    --logo-red-hover: #6e1519;
    --warning: #FF5733;
    --gold: #FFC300;
    --info-blue: #17a2b8;
    --info-blue-hover: #138496;
    --orange: #FFA500;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--secondary);
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    width: 350px;
    overflow: visible;
    position: relative;
    margin-top: 100px;
}

.login-container.wide {
    width: 400px;
}

.logo-container {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 170px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.logo-container img {
    width: 150px;
    border-radius: 50%;
}

.login-header {
    color: white;
    padding: 30px 30px 20px 30px;
    text-align: center;
    margin-top: 80px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--gold);
}

.login-header p {
    opacity: 0.9;
    font-size: 14px;
    color: #ccc;
}

.login-body {
    padding: 20px 30px 30px 30px;
}

.sso-badge {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--gold);
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

.sso-badge strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
}

.info-message {
    background: rgba(255, 195, 0, 0.1);
    border-left: 4px solid var(--gold);
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

.requirements-box {
    background: rgba(255, 195, 0, 0.1);
    border-left: 4px solid var(--gold);
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
}

.requirements-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
}

.requirements-box ul {
    margin-left: 20px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.input-group {
    display: flex;
}

.input-group-prepend {
    background: var(--logo-red);
    color: white;
    padding: 12px 15px;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #555;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #ccc;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--orange);
}

.remember-me label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #c62828;
    color: #c62828;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    border-left: 4px solid #27ae60;
    color: #155724;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-login,
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--logo-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-login:hover,
.btn-submit:hover {
    background: var(--logo-red-hover);
    box-shadow: 0 4px 12px rgba(142, 25, 30, 0.4);
    transform: translateY(-2px);
}

.btn-login:active,
.btn-submit:active {
    transform: translateY(0);
}

.forgot-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-links a:hover {
    color: #ccc;
    text-decoration: underline;
}

.forgot-links .separator {
    color: #888;
    margin: 0 8px;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #ccc;
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    color: #999;
}

.env-development,
.env-test {
    color: var(--gold) !important;
    font-weight: bold;
}

.env-production {
    display: none;
}
