/* ==========================================
   RESET
   ========================================== */

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

/* ==========================================
   BRAND VARIABLES
   ========================================== */

:root {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --accent: #c9a227;
    --accent-light: #e6c65c;

    --text-dark: #1f2937;
    --text-muted: #64748b;

    --border: #d1d5db;
    --background: #f8fafc;
    --card-bg: #ffffff;
}

/* ==========================================
   BODY
   ========================================== */

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* ==========================================
   HEADER LOGOS
   ========================================== */

.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #ffffff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.logo-left {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.logo-right {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* ==========================================
   LOGIN CONTAINER
   ========================================== */

.login-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--accent);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

.login-box-logo {
    width: 150px;
    height: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* ==========================================
   OTP CONTAINER
   ========================================== */

.otp-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--accent);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

.otp-box-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

label {
    font-size: 12px;
    color: var(--text-dark);
    margin-right: 10px;
    width: 90px;
}

/* ==========================================
   ERROR MESSAGE
   ========================================== */

.error-message {
    background-color: #fff8e6;
    color: #7a5a00;
    border: 1px solid rgba(201,162,39,0.35);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FORM
   ========================================== */

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* ==========================================
   BUTTONS
   ========================================== */

button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #c9a227;
    color: #0f172a;
    transform: translateY(-1px);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================
   ALERTS
   ========================================== */

.alert {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid transparent;
    background: #f9fafb;
}

.alert strong {
    font-weight: 600;
}

.alert-error {
    background: #fff8e6;
    border-color: rgba(201,162,39,0.35);
    color: #7a5a00;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    animation: fadeIn 0.25s ease-out;
}

/* ==========================================
   CARD SHAKE
   ========================================== */

.login-container.has-error {
    animation: cardShake 240ms ease-in-out;
}

@keyframes cardShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

/* ==========================================
   SUPPORT NOTE
   ========================================== */

.support-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.support-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.support-note a:hover {
    color: var(--primary);
    text-decoration: underline;
}