/* Global app background */
body {
    background-color: #1b1b1b;
    color: #f5f5f5; /* optional: default text color for contrast */
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}


/* ===========================
   USER PANEL
=========================== */

/* Container */
.user-panel {
    max-width: 300px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: #e0e0e0;
}

/* Avatar */
.user-panel .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid #555;
    transition: transform 0.2s ease;
}
.user-panel .avatar:hover {
    transform: scale(1.05);
}

/* Email */
.user-panel .user-email {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

/* Actions */
.user-panel .actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Buttons */
.user-panel .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    color: #fff;
}

/* Button Variants */
.btn-edit {
    background-color: #6366f1;
}
.btn-edit:hover {
    background-color: #4f46e5;
}
.btn-logout {
    background-color: #ef4444;
}
.btn-logout:hover {
    background-color: #b91c1c;
}
.btn-login {
    background-color: #059669;
}
.btn-login:hover {
    background-color: #047857;
}
.btn-signup {
    background-color: #2563eb;
}
.btn-signup:hover {
    background-color: #1d4ed8;
}

/* ===========================
   LOGIN PANEL
=========================== */

.login-panel {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: #f9fafb;
    font-family: 'Segoe UI', sans-serif;
}

/* Title */
.login-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #f3f4f6;
}

/* Form Fields */
.login-form .field {
    margin-bottom: 1rem;
    text-align: left;
}
.input-field {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #374151;
    background-color: #111827;
    color: #f9fafb;
    transition: all 0.2s ease;
}
.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Checkbox */
.checkbox {
    accent-color: #3b82f6;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background-color: #3b82f6;
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-login:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Links */
.login-links a {
    color: #3b82f6;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}
.login-links a:hover {
    text-decoration: underline;
}

/* ===========================
   FORGOT PASSWORD / AUTH PANEL
=========================== */

.auth-panel {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 12px;
    color: #f5f5f5;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

/* Title */
.auth-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Input fields */
.auth-form .label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #e5e5e5;
}
.auth-form .input {
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #f5f5f5;
    transition: all 0.2s ease;
}
.auth-form .input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    outline: none;
}

/* Submit Button */
.auth-form .btn-submit {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s ease;
}
.auth-form .btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Error messages */
.error-messages {
    background-color: #4b0000;
    color: #ffbaba;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.error-messages h3 {
    margin-top: 0;
    font-weight: bold;
}
.error-messages ul {
    padding-left: 1.2rem;
    margin: 0;
}

/* Links */
.auth-links {
    margin-top: 1.5rem;
}
.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* ===========================
   Global Form/Button Consistency
=========================== */

input[type="text"],
input[type="email"],
input[type="password"],
.input-field,
.auth-form .input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #f5f5f5;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input:focus,
.input-field:focus,
.auth-form .input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Buttons */
button,
.btn,
.btn-login,
.btn-signup,
.btn-logout,
.btn-edit,
.auth-form .btn-submit {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Button hover effects */
button:hover,
.btn:hover,
.auth-form .btn-submit:hover {
    transform: translateY(-2px);
}

/* Keep color variants */
.btn-edit { background-color: #6366f1; color: #fff; }
.btn-edit:hover { background-color: #4f46e5; }

.btn-logout { background-color: #ef4444; color: #fff; }
.btn-logout:hover { background-color: #b91c1c; }

.btn-login { background-color: #059669; color: #fff; }
.btn-login:hover { background-color: #047857; }

.btn-signup { background-color: #2563eb; color: #fff; }
.btn-signup:hover { background-color: #1d4ed8; }

.auth-form .btn-submit { background-color: #3b82f6; color: #fff; }
.auth-form .btn-submit:hover { background-color: #1d4ed8; }

/* ===========================
   Links Styling
=========================== */

/* All links inside forms and panels */
a {
    color: #ffffff; /* white text */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #cfcfcf; /* slightly lighter on hover */
    text-decoration: underline;
}

/* Specifically for auth and login links */
.login-links a,
.auth-links a {
    color: #ffffff;
}

.login-links a:hover,
.auth-links a:hover {
    color: #cfcfcf;
    text-decoration: underline;
}

.flash {
    padding: 12px;
    margin: 10px auto;
    border-radius: 8px;
    max-width: 400px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

/* Success Notice */
.flash.notice,
.flash.success {
    background-color: #064e3b;
    color: #d1fae5;
    border: 1px solid #10b981;
}

/* Warning / Alert */
.flash.alert,
.flash.error {
    background-color: #4b0000;
    color: #ffbaba;
    border: 1px solid #dc2626;
}
