/* static/css/login.css */

/* Import variables from admin.css */
:root {
    --primary: #4a4a4a;
    --secondary: #f5e6d3;
    --accent: #0073e6;
    --border: #c0b8a8;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --published: #89ce00;
    --filtered: #d8d0c0;
    --filtered-text: #7a7a7a;
    --new: #9b59b6;
    --header-bg: #3a3a3a;
    --panel-bg: #d8d0c0;
    --viewed-story: #c0b8a8;
}

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

body {
    font-family: "Georgia", "Times New Roman", serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.4;
    font-size: 13px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
}

.subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.1);
}

button {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 2px;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

button:hover {
    background: #3a0075;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(75, 0, 146, 0.3);
}

button:active {
    transform: translateY(0);
}

.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    text-align: center;
}

.help-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.help-links a {
    color: var(--accent);
    text-decoration: none;
}

.help-links a:hover {
    text-decoration: underline;
}

.demo-creds {
    background: rgba(0, 115, 230, 0.05);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 2px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.demo-creds strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-creds p {
    margin: 0.25rem 0;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    input[type="text"],
    input[type="password"] {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    button {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .demo-creds {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

/* Published mode styles - for consistency with admin */
body.published-mode .login-container {
    border-color: var(--published);
}

body.published-mode h1 {
    border-bottom-color: var(--published);
}

body.published-mode button {
    background: var(--published);
    color: #000;
}

body.published-mode button:hover {
    background: #00cc00;
    box-shadow: 0 2px 4px rgba(26, 255, 26, 0.3);
}

body.published-mode input:focus {
    border-color: var(--published);
    box-shadow: 0 0 0 2px rgba(26, 255, 26, 0.1);
}

body.published-mode .help-links a {
    color: var(--published);
}

body.published-mode .demo-creds {
    border-left-color: var(--published);
}

/* Archived mode styles - for consistency with admin */
body.archived-mode .login-container {
    border-color: var(--archived);
}

body.archived-mode h1 {
    border-bottom-color: var(--archived);
}

body.archived-mode button {
    background: var(--archived);
    color: white;
}

body.archived-mode button:hover {
    background: var(--archived-dark);
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

body.archived-mode input:focus {
    border-color: var(--archived);
    box-shadow: 0 0 0 2px rgba(149, 165, 166, 0.1);
}

body.archived-mode .help-links a {
    color: var(--archived);
}

body.archived-mode .demo-creds {
    border-left-color: var(--archived);
}