/* EXECUTIVE THEME & ROOT VARIABLES */
:root {
    --hcc-green: #006600; /* KP HCC Official Green */
    --hcc-green-dark: #004d00;
    --white: #ffffff;
    --bg-light: #f4f7f4;
    --text-primary: #333333;
    --text-secondary: #555555;
    --border-color: #dddddd;
    --box-shadow: 0 10px 30px rgba(0, 102, 0, 0.12); /* Subtle Green Glow */
}

/* BASE CONTAINER & SCREEN CENTERING (Flexbox Magic) */
.its-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    margin: 0;
    min-height: 100vh; /* Takes full screen height */
    width: 100%;
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    box-sizing: border-box;
}

/* THE LOGIN CARD (Larger and Positioned) */
.its-login-card {
    background-color: var(--white);
    /* NEW SIZE: Larger than before (was ~400px) */
    width: 100%;
    max-width: 480px; 
    border-radius: 12px;
    padding: 40px; /* Increased padding for executive spacing */
    box-shadow: var(--box-shadow);
    /* Green Top Bar as seen in reference */
    border-top: 8px solid var(--hcc-green); 
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* --- LOGO INTEGRATION --- */
.hcc-logo-container {
    text-align: center;
    margin-bottom: 25px; /* Spacing between logo and title */
}

.hcc-logo {
    max-width: 120px; /* New Size: Professional scale */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* HEADER TYPOGRAPHY */
.its-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.its-card-header h2 {
    font-size: 26px; /* Larger title */
    color: var(--hcc-green);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.its-card-header h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* FORM ELEMENTS */
.its-form {
    display: grid;
    gap: 20px;
}

.input-wrapper {
    width: 100%;
}

.its-label {
    font-size: 12px;
    font-weight: bold;
    color: #444;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.its-input {
    width: 100%;
    padding: 14px; /* Slightly larger inputs */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: #fbfbfb;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.its-input:focus {
    border-color: var(--hcc-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 0, 0.1); /* Executive highlight */
}

/* SECURE LOGIN BUTTON */
.its-btn-secure {
    width: 100%;
    padding: 16px; /* Taller, larger button */
    background-color: var(--hcc-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px; /* Larger text */
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 1px;
}

.its-btn-secure:hover {
    background-color: var(--hcc-green-dark);
}

/* INSTRUCTIONS & REGISTRATION (Larger Footer) */
.its-card-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.its-instructions {
    background: #f9fdf9;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #c1d5c1;
}

.its-instructions h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--hcc-green);
}

.its-instructions p {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* REGISTRATION TEXT BUTTON */
.its-btn-text {
    background: none;
    border: none;
    color: #c19e51; /* Official Accent Color from reference image */
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 14px;
}

.its-btn-text:hover {
    color: #d1b46a;
    text-decoration: underline;
}

/* CENTRALIZED REGISTRATION MODAL */
.its-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Centered backdrop */
    justify-content: center; /* Horizontally center modal */
    align-items: center; /* Vertically center modal */
    box-sizing: border-box;
}

.its-register-card {
    max-width: 550px; /* Modal is even wider than login */
    position: relative;
    border-top: 8px solid var(--hcc-green);
    padding: 40px;
}

/* GRID FORM FOR REGISTRATION */
.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.span-2 {
    grid-column: span 2;
}

/* CLOSE BUTTON */
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover { color: #333; }