:root {
    --primary-color: #00aeef;      /* Vibrant Sky Blue */
    --primary-dark: #005a9c;       /* Cap and gown deep navy */
    --primary-hover: #0099d4;      /* Slightly deeper blue for hover actions */
    --bg-gradient: linear-gradient(135deg, #0d1b2a 0%, #005a9c 50%, #00aeef 100%);
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --error-color: #ef4444;        
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-wrapper {
    width: 200px;
    height: 100px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20%;
}

.brand-header h1 {
    font-size: 30px;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-header h1 span { color: var(--primary-color); }
.brand-header p { color: var(--text-light); font-size: 13px; margin-top: 5px; font-weight: 500; }

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.input-group .toggle-password:hover {
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    padding: 15px 40px 15px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    color: var(--text-color);
}

.input-group input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
}

.input-group input:focus ~ .field-icon {
    color: var(--primary-color);
}

.validation-message {
    font-size: 12px;
    color: var(--error-color);
    margin-top: -12px;
    margin-bottom: 18px;
    font-weight: 500;
    min-height: 18px;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
}

.btn-login:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 7px 20px rgba(0, 174, 239, 0.4);
}

.btn-login:disabled {
    background-color: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.signup-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 25px;
}

.signup-footer a { color: var(--primary-dark); text-decoration: none; font-weight: 700; }
.signup-footer a:hover { color: var(--primary-color); }

/* ============================================================================
 * OTP Verification Overlay Modal Structure Styles 
 * ============================================================================
 */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.otp-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.otp-card {
    position: relative; /* Anchors the top-right cross icon absolute positioning */
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-otp-cross {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.close-otp-cross:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    transform: rotate(90deg);
}

.otp-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.otp-card h2 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.otp-card p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 25px;
    line-height: 1.5;
}

#otpInput {
    text-align: center;
    letter-spacing: 6px;
    font-size: 20px;
    font-weight: 700;
    padding-left: 15px;
}

.btn-cancel {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: color 0.2s ease;
}

.btn-cancel:hover {
    color: var(--error-color);
}

/* ... [Keep all previous styles unchanged until #otpInput] ... */

#otpInput {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px; /* Spacing for the digits typed by the user */
}

/* Attractive, lightweight styling exclusively for the placeholder */
#otpInput::placeholder {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px; /* Removes the ugly wide gaps on the placeholder text */
    color: var(--text-light);
    text-transform: lowercase;
    opacity: 0.7;
}