/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #0052cc;
    /* Professional Blue */
    --primary-hover: #0747a6;
    --accent-color: #00b8d9;
    /* Teal for accents */

    --bg-color: #f4f5f7;
    --card-bg: #ffffff;

    --text-main: #172b4d;
    --text-muted: #5e6c84;
    --border-color: #dfe1e6;

    --logo-text: #091e42;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #f4f5f7 0%, #ebecf0 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Card Container */
.container {
    background-color: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    /* Slightly sharper for professional look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    /* Brand accent line */
}

/* Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--logo-text);
    letter-spacing: -0.01em;
}

p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Brand Logo Area */
/* Brand Logo Area */
.brand-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.brand-logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    /* Professional squared radius */
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: #fafbfc;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.85rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 1rem;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    margin-top: 1rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #ebecf0;
    color: var(--text-main);
    border-color: #b3bac5;
}

/* Alerts / Attributes */
.attributes-box {
    text-align: left;
    background: #f4f5f7;
    padding: 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    color: var(--text-main);
}

.error-msg {
    background-color: #ffebe6;
    color: #de350b;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid #ffbdad;
}

/* Footer Links */
.footer-links {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}