/* Teatru Salesjan Coffee Shop - Styles */

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

:root {
    --coffee-dark: #2c1810;
    --coffee-medium: #5c3d2e;
    --coffee-light: #8b6f4e;
    --cream: #f5f0e8;
    --gold: #c9a96e;
    --white: #ffffff;
    --error-red: #d32f2f;
    --success-green: #2e7d32;
}

body {
    font-family: 'Arimo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--coffee-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Hero / Landing Page ── */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat fixed;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.hero-logo {
    width: 360px;
    max-width: 85%;
    height: auto;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content .tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    color: var(--coffee-dark);
}

.btn-primary:hover {
    background: #b8943d;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--coffee-dark);
}

.btn-danger {
    background: var(--error-red);
    color: var(--white);
}

.btn-danger:hover {
    background: #b71c1c;
}

/* ── Login Page ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat fixed;
    padding: 1rem;
}

.login-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    text-align: center;
    color: var(--coffee-dark);
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
}

.login-card .subtitle {
    text-align: center;
    color: var(--coffee-light);
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--coffee-medium);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d4c9be;
    border-radius: 6px;
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.login-card .btn {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
}

.login-card .back-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: var(--coffee-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-card .back-link:hover {
    color: var(--coffee-dark);
}

/* ── Flash Messages ── */
.flash {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.flash-error {
    background: #fdecea;
    color: var(--error-red);
    border: 1px solid #f5c6cb;
}

.flash-success {
    background: #e8f5e9;
    color: var(--success-green);
    border: 1px solid #c8e6c9;
}

/* ── Dashboard ── */
.dashboard {
    min-height: 100vh;
    background: var(--cream);
}

.dashboard-header {
    background: var(--coffee-dark);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dashboard-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.dashboard-body {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.welcome-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.welcome-card h2 {
    font-size: 1.8rem;
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
}

.welcome-card .role-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.role-badge.admin {
    background: var(--gold);
    color: var(--coffee-dark);
}

.role-badge.user {
    background: #e0e0e0;
    color: #333;
}

.welcome-card p {
    color: var(--coffee-light);
    margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
