﻿:root {
    --primary-blue: #1670b8;
    --light-bg: #f4f5f7;
    --text-dark: #333;
}

body {
    font-family: 'sans-serif', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f5;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    /* 1. Ensure body takes up the full screen height */
    min-height: 100vh;
    /* 2. Prevent the 15px top + 30px bottom borders from causing a scrollbar */
    box-sizing: border-box;
    /* 3. Keep the body flexed so we can push the bottom border all the way down */
    display: flex;
    flex-direction: column;
    /* Your Top and Bottom Borders */
    border-top: 20px solid var(--primary-blue);
    border-bottom: 20px solid var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    /* Add these two lines */
    flex-grow: 1;
    width: 100%;
    /* Keep padding inside the container width */
    box-sizing: border-box;
}

/* Header Styles */
.portal-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.home-icon-container {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 24px;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.portal-header h1 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-divider {
    border: none;
    height: 2px;
    background-color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Info Alert Box */
.info-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 15px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Grid Layout for Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Individual Card Styles */
.action-card {
    background-color: var(--primary-blue);
    color: white;
    padding: 30px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .action-card:hover {
        background-color: #125a94;
        transform: translateY(-2px);
        cursor: pointer;
        color: white; /* Ensures link text stays white on hover */
        text-decoration: none;
    }

.card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.card-icon {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    width: 90%;
    margin: 0 auto 20px auto;
}

.card-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.95;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portal-header h1 {
        font-size: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   Form Card Styles (Reset Password, etc.)
   ========================================= */

.form-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px; /* Keeps the card from stretching across the whole screen */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.form-card-header {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
}

.form-card-body {
    padding: 25px 30px 30px 30px;
}

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        font-weight: 700;
        color: #333;
        font-size: 14px;
        margin-bottom: 8px;
    }

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    font-size: 14px;
    color: #333;
    box-sizing: border-box; /* Ensures padding doesn't break the 100% width */
}

/* Adds a nice blue glow when the user clicks into the text box */
.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(22, 112, 184, 0.2);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 8px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #125a94; /* Slightly darker blue on hover */
}

/* =========================================
   OTP Validation Specific Styles
   ========================================= */

/* Make readonly inputs look grayed out like the screenshot */
.form-control[readonly] {
    background-color: #f5f5f5;
    color: #666666;
    cursor: not-allowed;
}

    .form-control[readonly]:focus {
        /* Remove the blue glow if the user clicks a disabled field */
        border-color: #cccccc;
        box-shadow: none;
    }

/* Container to place buttons side-by-side */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
}

/* Secondary Button (Cancel) */
.btn-secondary {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    padding: 8px 25px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

    .btn-secondary:hover {
        background-color: #f0f0f0;
        color: #333333;
        text-decoration: none;
    }

/* Small helper text below inputs */
.help-text {
    font-size: 13px;
    color: #555555;
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.5;
}

    .help-text a {
        color: var(--primary-blue);
        font-weight: 700; /* Makes the "here" links bold */
        text-decoration: none;
    }

        .help-text a:hover {
            text-decoration: underline;
        }

/* Utility class for spacing */
.mt-4 {
    margin-top: 25px;
}

/* Updated Home Icon Container */
.home-icon-container {
    background-color: var(--primary-blue);
    color: #ffffff !important; /* Force the icon to stay white */
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 24px;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* Fix for <a> tag styling */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

/* Stop the browser from changing colors when clicking or visiting */
.home-icon-container:visited,
.home-icon-container:active,
.home-icon-container:focus {
    color: #ffffff !important;
    text-decoration: none;
}

/* Add a slight darkening effect when hovered so it feels clickable */
.home-icon-container:hover {
    background-color: #125a94;
    color: #ffffff !important;
    text-decoration: none;
}

/* =========================================
   Form Validation & Helper Text Styles
   ========================================= */

/* For standard validation error messages */
.validation-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* For small instructional text under inputs */
.field-helper-text {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 8px;
}

/* Utility class for smaller bottom margins on specific form groups */
.form-group-sm {
    margin-bottom: 15px;
}

/* =========================================
   Set New Password Specific Styles
   ========================================= */

/* Checkbox layout for the "Show Answer" toggle */
.checkbox-container {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Subtle divider line above action buttons */
.form-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* Utility class to remove top margin */
.mt-0 {
    margin-top: 0;
}
.mt-4 {
    margin-top: 25px;
}
/* --- Native Dialog Success Modal --- */

#native-success-modal {
    border: none;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
    text-align: center;
}

    /* Dims the background when the modal is open */
    #native-success-modal::backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

    #native-success-modal .success-icon {
        margin-bottom: 15px;
        color: var(--primary-blue);
    }

    #native-success-modal .success-title {
        margin: 0 0 10px 0;
        font-family: sans-serif;
        font-size: 24px;
        color: #333;
    }

#native-success-text {
    margin: 0 0 20px 0;
    font-family: sans-serif;
    color: #666;
}

#native-success-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    #native-success-btn:hover {
        background-color: #125a94;
    }
.password-wrapper {
    position: relative;
}

.password-input-with-icon {
    padding-right: 40px !important;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: #333;
}

/* =========================================
   Error Page Specific Styles
   ========================================= */

.error-page-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.error-form-card {
    margin-top: 0;
}

.error-header {
    background-color: var(--primary-blue);
    border-color: #d9534f;
}

.error-alert {
    text-align: left;
    margin-bottom: 30px;
}

.error-button-group {
    justify-content: center;
    margin-bottom: 0;
}