:root {
    --primary-teal: #00938f;
    --primary-teal-dark: #007a77;
    --dark-blue: #003057;
    --light-teal: #e6f4f4;
    --gray-text: #4a4a4a;
    --bg-light: #f7f7f7;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f7f7f7 0%, #f0f4f4 100%);
    color: var(--gray-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in;
}

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

/* ===== CARDS ===== */
.login-card, .admin-card {
    background: var(--white);
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.main-title {
    color: var(--dark-blue);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

p.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 32px;
}

/* ===== FORM GROUPS ===== */
.form-group {
    text-align: left;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 147, 143, 0.1);
}

/* ===== BUTTONS ===== */
.btn-submit, .btn-primary, .btn-continue {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 147, 143, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover,
.btn-primary:hover,
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 147, 143, 0.4);
}

.btn-submit:active,
.btn-primary:active,
.btn-continue:active {
    transform: translateY(0);
}

/* ===== RADIO BUTTONS (BANK SELECTION) ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.radio-option:hover {
    border-color: var(--primary-teal);
    background-color: var(--light-teal);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    cursor: pointer;
    accent-color: var(--primary-teal);
}

.radio-option label {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    flex: 1;
    text-align: left;
}

/* ===== LOADING SPINNER ===== */
.spinner-container {
    margin: 40px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ===== APPROVE BOX ===== */
.approve-box {
    background: linear-gradient(135deg, var(--light-teal) 0%, #d4eff0 100%);
    border: 2px solid var(--primary-teal);
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 16px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer-info {
    margin-top: 40px;
    font-size: 12px;
    color: #999;
}

/* ===== ADMIN PANEL ===== */
.admin-card {
    max-width: 700px;
}

.admin-header {
    margin-bottom: 30px;
    text-align: left;
}

.admin-header h1 {
    margin-bottom: 10px;
}

.user-list {
    margin-bottom: 30px;
    text-align: left;
}

.user-item {
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-teal);
}

.user-info {
    flex: 1;
}

.user-info p {
    margin: 4px 0;
    font-size: 14px;
}

.user-info strong {
    color: var(--dark-blue);
}

.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-redirect {
    padding: 8px 14px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-redirect-card {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-redirect-card:hover {
    background-color: #1976d2;
    color: white;
}

.btn-redirect-sms {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.btn-redirect-sms:hover {
    background-color: #7b1fa2;
    color: white;
}

.btn-redirect-approve {
    background-color: #e8f5e9;
    color: #388e3c;
}

.btn-redirect-approve:hover {
    background-color: #388e3c;
    color: white;
}

.btn-redirect-index {
    background-color: #fff3e0;
    color: #f57c00;
}

.btn-redirect-index:hover {
    background-color: #f57c00;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .login-card, .admin-card {
        padding: 30px 20px;
        max-width: 100%;
    }

    .main-title {
        font-size: 36px;
    }

    h1 {
        font-size: 20px;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions {
        width: 100%;
        margin-top: 12px;
    }
}
