/* =========================
   ROOT VARIABLES (LIGHT)
========================= */
:root {
    --bg: #f7f7f7;
    --card: #ffffff;
    --text: #111827;
    --muted: #666;
    --border: #ddd;

    --primary: #f58220;
    --primary-hover: #d96d0f;

    --input-border: #ccc;

    --toast-success-bg: #e6f7ed;
    --toast-success-text: #1e7e34;

    --toast-error-bg: #fdecea;
    --toast-error-text: #b02a37;
}

/* =========================
   DARK MODE
========================= */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --card: #111827;
        --text: #f9fafb;
        --muted: #9ca3af;
        --border: #1f2937;

        --input-border: #374151;

        --toast-success-bg: #064e3b;
        --toast-success-text: #a7f3d0;

        --toast-error-bg: #7f1d1d;
        --toast-error-text: #fecaca;
    }
}

/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* HEADER */
.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    align-items: center;
}

/* LOGO */
.logo img {
    height: 40px;
}

/* LAYOUT */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 85vh;
}

/* CARD */
.card {
    background: var(--card);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
}

/* TITLES */
.title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text);
}

.subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 25px;
}

/* INPUTS */
.form-group {
    margin-bottom: 15px;
}

label {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}

input {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--input-border);
    border-radius: 3px;
    background: var(--card);
    color: var(--text);
}

input:focus {
    border-color: var(--primary);
    outline: none;
}

/* BUTTON */
.btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
}

/* =========================
   TOAST NOTIFICATIONS
========================= */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

/* SUCCESS */
.toast.success {
    background: var(--toast-success-bg);
    color: var(--toast-success-text);
    border: 1px solid rgba(0,0,0,0.1);
}

/* ERROR */
.toast.error {
    background: var(--toast-error-bg);
    color: var(--toast-error-text);
    border: 1px solid rgba(0,0,0,0.1);
}

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