/* MOF SG Theme - Modern Authentication Portal */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #a5e0c1;
    --secondary-color: #8dd4a7;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #ddd;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    /* background: var(--primary-color); */
    /* padding: 5px;
    border-radius: 4px; */
}

.nav-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #6d6d6d, #6d6d6d);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(255, 255, 255);
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: -50px auto 0;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 10;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
}

.step.completed .step-number {
    background: var(--success-color);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Pages */
.form-page {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.form-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(165, 224, 193, 0.1);
}

.form-group input:invalid {
    border-color: var(--error-color);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    margin-top: 12px;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 12px;
    padding: 0.5rem;
    transition: var(--transition);
}

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

/* OTP Container */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.otp-input {
    width: 50px !important;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0 !important;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(165, 224, 193, 0.1);
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.timer {
    font-weight: 600;
    color: var(--accent-color);
}

/* Password Requirements */
.password-requirements {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.password-requirements h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.password-requirements li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.password-requirements li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
}

.password-requirements li.valid::before {
    content: '✓';
    color: var(--success-color);
}

.password-requirements li.valid {
    color: var(--success-color);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-link:hover {
    background: var(--primary-color);
    color: white;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* Loading Container */
.loading-container {
    text-align: center;
    padding: 2rem 0;
}

.loading-spinner {
    margin: 2rem auto;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-steps {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background: var(--background-color);
    transition: var(--transition);
}

.loading-step.active {
    background: rgba(165, 224, 193, 0.1);
    color: var(--primary-color);
}

.loading-step.completed {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.loading-step i {
    width: 20px;
    text-align: center;
}

.loading-message {
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 0;
        box-shadow: var(--shadow-medium);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-title {
        font-size: 1.2rem;
        display: none;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.3rem;
    }
    
    .form-container {
        margin: -30px 1rem 1rem;
        padding: 1.5rem;
    }
    
    .progress-indicator {
        margin-bottom: 2rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .otp-container {
        gap: 0.5rem;
    }
    
    .otp-input {
        width: 40px !important;
        height: 40px;
        font-size: 1.2rem;
    }
    .step
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .banner-section {
        height: 200px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .form-container {
        margin: -20px 0.5rem 0.5rem;
        padding: 1rem;
    }
    
    .progress-indicator {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        flex: 1;
        min-width: 50px;
    }
}

/* ========== MULTI-STEP FORM ADDITIONS ========== */

/* Enhanced Progress Indicator */
/* .progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 3rem 0;
    gap: 1rem;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    background: var(--background-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.step.active {
    opacity: 1;
    transform: scale(1.05);
}

.step.completed {
    opacity: 1;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    animation: pulse 2s infinite;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.form-page {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.form-page.active {
    display: block;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.otp-input {
    width: 50px !important;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    background: var(--surface-color) !important;
    padding: 0 !important;
    transition: var(--transition);
    outline: none;
}

.otp-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(165, 224, 193, 0.2);
    transform: scale(1.05);
}

.otp-input:valid {
    border-color: var(--success-color) !important;
}

.form-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 10;
    margin-top: 12px;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(165, 224, 193, 0.1);
}

.loading-container {
    text-align: center;
    padding: 3rem 0;
}

.loading-spinner {
    margin: 2rem auto;
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(165, 224, 193, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-steps {
    margin: 2rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.loading-step {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    border-left: 4px solid transparent;
    opacity: 0.5;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.loading-step.active {
    opacity: 1;
    background: rgba(165, 224, 193, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.loading-step i {
    font-size: 1.2rem;
    min-width: 20px;
}

.loading-message {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .progress-indicator {
        margin: 1rem 0 2rem 0;
        gap: 0.5rem;
    }
    
    .progress-indicator::before {
        left: 5%;
        right: 5%;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .otp-container {
        gap: 0.5rem;
    }
    
    .otp-input {
        width: 40px !important;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .loading-step {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .spinner {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none; 
    }
    
    .progress-indicator {
        gap: 0.3rem;
    }
    
    .otp-input {
        width: 35px !important;
        height: 45px;
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --surface-color: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --border-color: #404040;
    }
    
    .progress-indicator::before {
        background: var(--border-color);
    }
    
    .step {
        background: var(--surface-color);
    }
    
    .loading-step {
        background: var(--surface-color);
    }
    
    .otp-input {
        background: var(--surface-color) !important;
        color: var(--text-primary) !important;
    }
} */

/* ========== LOADER STYLES ========== */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.spinner-ring {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid transparent;
    border-radius: 50%;
    animation: spin-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #fff;
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    border-top-color: rgba(255, 255, 255, 0.7);
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    border-top-color: rgba(255, 255, 255, 0.5);
    animation-delay: -0.15s;
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Form Submit Loader */
.form-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.form-loader-content {
    position: relative;
    text-align: center;
    background: white;
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.form-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-loader-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    animation: dots 1.5s steps(3, end) infinite;
}

.form-loader-text::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Loading Progress Bar */
.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 100%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* Skeleton Loading for Content */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Loader Styles */
@media (max-width: 768px) {
    .form-loader-content {
        padding: 2rem 2.5rem;
        margin: 1rem;
    }
    
    .loader-text {
        font-size: 1rem;
    }
    
    .form-loader-text {
        font-size: 1rem;
    }
    
    .loader-spinner {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring {
        width: 48px;
        height: 48px;
        border-width: 6px;
    }
    
    .form-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .form-loader-content {
        padding: 1.5rem 2rem;
    }
    
    .loader-text,
    .form-loader-text {
        font-size: 0.9rem;
    }
    
    .loader-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 1.5rem;
    }
    
    .spinner-ring {
        width: 40px;
        height: 40px;
        border-width: 4px;
        margin: 5px;
    }
    
    .form-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
}

/* Dark mode support for loaders */
@media (prefers-color-scheme: dark) {
    .form-loader-content {
        background: var(--surface-color);
        color: var(--text-primary);
    }
    
    .form-spinner {
        border-color: #404040;
        border-top-color: var(--primary-color);
    }
    
    .skeleton {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}