/* ------------------------------
   SAFARICOM GREEN LOGIN PAGE
-------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Arial', sans-serif;
}

/* PAGE BACKGROUND */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3fff7;
    padding: 15px;
}

/* LOGIN CONTAINER */
.container {
    background: #ffffff;
    padding: 32px 25px;
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.12);
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
    border: 1px solid #d9f5e3;
}

/* HEADER */
.login-header h2,
.container h2 {
    margin-bottom: 8px;
    color: #00a651;
    font-size: 1.8rem;
    font-weight: 700;
}

.login-header p {
    color: #666;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

/* FORM GROUP */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* LABELS */
.form-group label {
    margin-top: 12px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

/* INPUTS */
.form-group input {
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #ccebd8;
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
    background: #f8fffb;
    color: #222;
    transition: 0.3s ease;
}

/* INPUT FOCUS */
.form-group input:focus {
    border-color: #00a651;
    box-shadow: 0 0 10px rgba(0, 166, 81, 0.18);
    background: #ffffff;
}

/* BUTTON */
button {
    margin-top: 20px;
    padding: 12px;
    background: #00a651;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background: #008f45;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 166, 81, 0.2);
}

/* ERROR MESSAGE */
.errormessage {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d62828;
    background: #ffeaea;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ffb3b3;
}

/* LINKS */
.links,
.container p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
}

.container a {
    color: #00a651;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.container a:hover {
    color: #008f45;
}

.google-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    color: #1f2937;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.google-auth-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.google-auth-btn:hover {
    color: #1f2937;
    border-color: #b8c2cf;
    background: #f8fafc;
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 4px;
    color: #7a8699;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dfe7ef;
}

.auth-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-message.error {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.forgot_password {
    display: inline-block;
    margin-top: 16px;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SMALL PHONES FIX */
@media (max-height: 600px) {

    body {
        align-items: flex-start;
    }

    .container {
        margin-top: 20px;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 360px) {

    .container {
        padding: 22px;
    }

    .container h2 {
        font-size: 1.5rem;
    }

    .form-group input,
    button {
        font-size: 0.9rem;
    }
}
