/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f0fe, #ffffff,#e8f0fe); /* Soft gradient from light blue to white */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Fixes the background on scroll */
}

input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-contacts-auto-fill-button {
  display: none;
}

/* Container styles */
.container {
    background-color: rgba(252, 252, 252, 0.729);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-width: 90%;
    text-align: center;
}

/* Title styles */
.container h2 {
    color: #00377c;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #00377c;
    padding-bottom: 10px;
}

/* Form group styles */
.form-group {
    margin-bottom: 10px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input {
    width: calc(100% - 20px); /* Adjust width to match button size */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #003366;
    outline: none;
}

/* Password toggle styles */
.password-toggle {
    position: absolute;
    top: 35px;
    right: 10px;
    cursor: pointer;
}

/* Error message styles */
.form-group .error .form-error {
    color: #e10729;
    font-size: 12px;
    display: none;
}

/* Button styles */
.submit-btn {
    background-color: #00377c;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #002244;
    transform: scale(1.02);
}

/* Login link styles */
.login-link {
    margin-top: 15px;
}

.login-link a {
    color: #002244;
    text-decoration: none;
    font-size: 14px;
}

.login-link a:hover {
    text-decoration: underline;
}

.additional-links {
    margin-top: 15px;
}
.additional-links a {
    color: #002244;
    text-decoration: none;
    font-size: 14px;
}
.additional-links a:hover {
    text-decoration: underline;
}

/* Footer styles */
.footer {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: grey;
}

.footer a {
    color: grey;
    text-decoration: none;
   
}

.footer a:hover {
    text-decoration: underline;
}


.modal {
    display: flex; /* Use flexbox to center the modal */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
    justify-content: center; /* Center the modal */
    align-items: center; /* Center the modal */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%; /* Width of modal */
    max-width: 500px; /* Max width */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#hashedLink{
    color: #002244;
    text-decoration: none;
    font-size: 16px;
    text-decoration: underline;
}


.notphishing{
    margin-bottom: 5px;
}
.notphishing a{
    color: #002244;
    text-decoration: none;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 15px;
}



/* make button a flex container so content (spinner) is perfectly centered */
.submit-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* so width/height include padding/border */
}

/* loading state (button size will be locked by JS) */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.95; /* keep color visible */
}

/* white spinner centered inside button */
.submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #ffffff;       /* solid white spinner */
    border-top-color: rgba(255,255,255,0.15); /* subtle gap for the animation effect */
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    z-index: 2;
}

/* ensure text (if any) remains visually unchanged when restored */
@keyframes btn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}



/* ---------- Error Message Styling ---------- */
.error-message {
    color: #d93025;            /* Red tone (same as Google's error red) */
    font-size: 0.9rem;         /* Slightly smaller than normal text */
    margin-top: 4px;           /* Small space under input */
    display: none;             /* Hidden by default */
    animation: fadeIn 0.2s ease-in-out;
}

/* Optional: style the input field itself when invalid */
input:invalid,
input.error {
   
    outline: none;
}

/* Optional: subtle fade-in animation for error messages */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Optional: give all .error-message a little left indent for alignment */
.form-group .error-message {
    padding-left: 2px;
}

/* Optional: general .form-error (top-level error box at bottom of form) */
.form-error {
    color: #fff;
    background-color: #d93025;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 12px;
    display: none; /* hidden unless JS shows it */
}
