/* General styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1c2c, #004AAD);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Login container */
.login-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

/* Form header */
.login-form h2 {
    margin-bottom: 10px;
    color: #333;
}

.login-form p {
    color: #777;
    font-size: 0.9rem;
}

/* Input fields */
.login-form input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}


/* Login button */
.login-form button {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-form button:hover {
    background: #218838;
}

/* Error message */
.error-message {
    color: red;
    font-size: 0.9rem;
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    .login-container {
        width: 90%;
    }
}


.register-link a {
    color: #004AAD;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Animation container */
.login-form {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Hidden state (before showing) */
.hidden {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.terms-label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    margin: 10px 0;
    color: #555;
}

.terms-label input {
    margin-right: 6px;
}

.terms-label a {
    color: #004AAD;
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* Registration form uses same base .login-form styles */

/* Inline checkbox + label */
.form-group.terms {
  display: flex;
  align-items: center;
  gap: 8px;              /* space between the box and text */
  justify-content: flex-start;
  margin: 8px 0 16px;
}

.form-group.terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #28a745; /* modern browsers; matches your green */
  margin: 0;             /* remove default offset */
}

.form-group.terms label {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.2;
}

.form-group.terms a {
  color: #007bff;
  text-decoration: none;
}
.form-group.terms a:hover { text-decoration: underline; }

/* Optional: subtle fade-in for form toggle */
.fade {
  opacity: 0;
  transition: opacity 200ms ease;
}
.fade.show {
  opacity: 1;
}
.verify-container {
    margin: 15px 0;
    text-align: center;
}

.verify-instructions {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
}

.verify-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.verify-code {
    display: inline-block;
    padding: 10px 12px;
    background: #f2f2f2;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 4px;
    font-family: monospace;
    user-select: none;
    min-width: 130px;
}

/* Individual distorted characters */
.verify-char {
    display: inline-block;
    transform-origin: center;
}

/* Refresh button */
.refresh-btn {
    border: none;
    background: #ddd;
    color: #333;
    font-size: 1.3rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.refresh-btn:hover {
    background: #ccc;
}

#verifyInput {
    width: 90%;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #ddd;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block; /* <- this hides it */
}

/* ===== Verification Modal ===== */

#codeModal {
    display: none; /* shown via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal Container */
#codeModalContent {
    background: #1f2937; /* matches your header */
    color: #fff;
    padding: 25px 30px;
    border-radius: 18px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    animation: fadeIn 0.25s ease-in-out;
}

/* Title */
#codeModalContent h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* “Code sent” info text */
#codeModalContent .modal-info {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #111827;
}

/* Input box */
#codeModalContent input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;

    /* ADD THESE ↓↓↓ */
    border: 2px solid #d1d5db; /* light grey border always */
    outline: none;             /* remove default focus outline */

    font-size: 1rem;
    margin-bottom: 15px;
    background: #fff;
    color: #111827;
}

/* Optional: nicer border on focus */
#codeModalContent input:focus {
    border-color: #3b82f6; /* blue when selected */
}

/* Verify button */
#codeModalContent button {
    width: 100%;
    padding: 10px;
    background: #3b82f6; /* blue accent */
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

#codeModalContent button:hover {
    background: #2563eb;
}

/* Error message */
#codeModalContent .error-message {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #f87171;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
