/* ==========================================================================
   FAYE EVANS INSPIRED MINIMALIST FRAMEWORK (style.css)
   ========================================================================== */

:root {
    --bg-color: #fcfbfa;       /* Sandy cream ambient tone */
    --primary-color: #556b2f;  /* Muted earth olive core */
    --text-main: #2c302e;      /* Deep slate gray body contrast */
    --text-muted: #6b726e;     /* Subdued charcoal framework */
    --border-color: #e3dec3;   /* Accentuated dividing elements */
    --error-bg: #fdf2f2;
    --error-text: #9b1c1c;
    --success-bg: #f0f5f1;
    --success-text: #274e13;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(85, 107, 47, 0.04);
    border: 1px solid var(--border-color);
    text-align: center;
}

.dashboard-card {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    padding: 50px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(85, 107, 47, 0.02);
}

/* Typography */
h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 12px;
}

p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Status Notifications */
.alert {
    padding: 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid transparent;
    word-wrap: break-word;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: #d1ebd1;
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #f7d4d4;
    padding: 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: left;
    /* PDO and SMTP failures arrive as one long unbroken string; without this
       they run straight out through the side of the card. */
    overflow-wrap: anywhere;
}

/* Local development only — see the loopback-gated branch in index.php. */
.alert-dev {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
    background-color: #faf9f5;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    text-align: left;
}

.dev-heading {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.dev-link {
    align-self: stretch;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dev-link:hover {
    background-color: #435424;
}

.dev-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
    /* The token is 64 unbroken hex characters. */
    overflow-wrap: anywhere;
}

/* Form Design Elements */
form {
    text-align: left;
}

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

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-main);
}

input[type="email"] {
    width: 100%;
    padding: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    transition: all 0.25s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

button, .download-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

button:hover, .download-btn:hover {
    background-color: #435424;
}

/* Dashboard Specific Layout Components */
.meta-box {
    background-color: #faf9f5;
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    font-size: 0.95rem;
    color: var(--text-main);
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.meta-box div {
    margin-bottom: 8px;
}

.meta-box div:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: inline-block;
    width: 140px;
}

.download-section {
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: left;
}

.download-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.download-section .download-btn {
    width: auto;
    padding: 12px 24px;
    font-size: 0.9rem;
    margin-top: 5px;
}
.logout-container {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    text-align: left;
}
.logout-btn {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
    transition: all 0.25s ease;
}
.logout-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
