/* ------------------------------------------------------------------
   GLOBAL & LAYOUT STYLES
   ------------------------------------------------------------------ */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Application Card Container (Main wrapper for all views) --- */
.app-card {
    width: 100%;
    /* Default max-width set to a standard compact size (448px) */
    max-width: 448px; 
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    box-sizing: border-box;
}

/* Override for the wider registration form (FIXED WIDTH) */
.app-card.registration-card {
    max-width: 600px;
}

/* --- Logo Styling --- */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
}
/* Styling for the <img> tag */
.app-logo-img { 
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}
.logo-text {
    /* Adjusted size for single-line fit */
    font-size: 1.5rem; 
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #1f2937;
    margin-left: 0.75rem;
    white-space: nowrap;
}

/* --- Text Styling --- */
h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1 rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------
   FORM ELEMENTS
   ------------------------------------------------------------------ */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 150ms ease-in-out;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
    border-color: #6366f1;
}

/* --- Registration Specific Styles --- */
.form-header-mandatory {
    border-bottom: 1px solid #CCCCCC;
    color: #990033;
    font-weight: bold;
    font-size: 1.125rem; /* 18px */
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.form-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
/* Ensure grid items stack nicely on small screens */
@media (max-width: 640px) {
    .form-grid {
        flex-direction: column;
    }
}

.form-grid > div {
    flex: 1; 
}
.mandatory-star {
    color: #990000;
}
.text-danger-small {
    font-size: 0.75rem;
    color: #dc3545; 
    display: block;
    margin-top: 0.25rem;
}

/* Captcha specific styles */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
}

/* --- Submit Button --- */
.btn-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #4f46e5;
    transition: background-color 150ms ease-in-out;
    cursor: pointer;
}
.btn-submit:hover {
    background-color: #4338ca;
}
.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px #6366f1;
}

/* --- Footer Links --- */
.footer-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
}
.footer-link-primary {
    font-weight: 500;
    color: #4f46e5;
    text-decoration: none;
    transition: color 150ms ease-in-out;
}
.footer-link-secondary {
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 150ms ease-in-out;
}
.footer-link-primary:hover,
.footer-link-secondary:hover {
    color: #6366f1;
}
