/* =========================================================
   Modern Login Page Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #334155;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-frame {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Header & Logo */
.brand-header {
    margin-bottom: 28px;
}

.logo img {
    max-width: 90px;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

/* Form Group & Input */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.input-group input:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.input-group input::placeholder {
    color: #94a3b8;
}

/* Links & Extra Action */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Buttons */
button[type="submit"] {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

button[type="submit"]:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
}

button[type="submit"]:active {
    transform: translateY(1px);
}

/* Error Message Alert */
.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer Register Link */
.auth-footer {
    margin-top: 24px;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}