/**
 * Tabloom Server Pages Stylesheet
 * Shared styles for register.php, reset_form.php, and verify.php
 * Matches the main Tabloom landing page design (tabloom.css)
 */

/* Import Figtree font */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

:root {
    /* Tabloom color palette */
    --bg-primary: #FAF9F6;
    /* cream */
    --bg-secondary: #F5F5F5;
    /* light */
    --bg-tertiary: #EEEDE9;
    --bg-elevated: #FFFFFF;

    /* Typography colors */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    /* Accent colors - Tabloom Yellow */
    --accent: #E8F540;
    --accent-hover: #D9E63C;
    /* slightly darker yellow for hover if needed, or keep same */
    --accent-light: rgba(232, 245, 64, 0.12);

    /* Borders */
    --border-color: #E5E5E5;
    --border-focus: #E8F540;

    /* Status colors */
    --success: #2D9D5C;
    --success-bg: rgba(45, 157, 92, 0.1);
    --danger: #DC4A3D;
    --danger-bg: rgba(220, 74, 61, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;

    /* Border radius */
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --radius-button: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-main: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

    --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card {
    background: var(--bg-elevated);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid var(--border-color);
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-elevated);
    transition: var(--transition);
}

input::placeholder {
    color: var(--text-tertiary);
}

input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-light);
}

button {
    width: 100%;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-primary);
    /* Dark text on yellow background */
    border: none;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-weight: 400;
    /* Matching .btn font-weight */
    font-family: inherit;
    cursor: pointer;
    margin-top: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: var(--accent-hover);
    transform: none;
    /* Removed transform from previous style */
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 74, 61, 0.2);
}

.message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(45, 157, 92, 0.2);
}

.footer {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    /* Use text color like main site, or verify if link style should differ */
    text-decoration: underline;
    /* Standard link style or remove underline */
    font-weight: 500;
    transition: var(--transition);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

a:hover {
    color: var(--text-primary);
    background-color: var(--accent);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card {
        margin: 16px;
        padding: 32px 24px;
    }
}