/* Modern Authentication Pages - Mobile First Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Mobile: Full screen, no container styling */
.auth-container {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    padding: 50px 30px 35px;
    background: linear-gradient(135deg, #0C0C64 0%, #1a1a8f 50%, #2828b4 100%);
    color: white;
}

.logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 400;
}

.auth-body {
    padding: 30px 30px 25px;
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #0C0C64;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(12, 12, 100, 0.1);
}

.form-control.error {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
    user-select: none;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #0C0C64;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #0C0C64;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #060638;
}

/* Password/Pin Strength Indicator */
.password-strength,
.pin-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #0C0C64 0%, #1a1a8f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(12, 12, 100, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 12, 100, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.auth-footer a {
    color: #0C0C64;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #060638;
}

/* Select dropdown styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    color: #333;
    background: white;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.checkbox-group a {
    color: #0C0C64;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

input[type="checkbox"]:checked {
    accent-color: #0C0C64;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Tablet and Desktop - Center the form with card styling */
@media (min-width: 768px) {
    body {
        padding: 40px;
        background: linear-gradient(135deg, #0C0C64 0%, #1a1a8f 50%, #2828b4 100%);
    }
    
    .auth-container {
        max-width: 440px;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        min-height: auto;
    }
    
    .auth-header {
        padding: 50px 40px 35px;
        border-radius: 24px 24px 0 0;
    }
    
    .auth-body {
        padding: 40px 40px 35px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .forgot-password {
        margin-top: -10px;
        margin-bottom: 25px;
    }
    
    .auth-footer {
        padding: 30px 40px 40px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    body {
        padding: 60px;
    }
    
    .auth-container {
        max-width: 460px;
    }
}

/* Icon styling for forms */
.form-group i {
    margin-right: 8px;
    color: #0C0C64;
}

/* Input number - hide arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Success/Error states */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Multi-step form navigation */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #0C0C64;
    width: 24px;
    border-radius: 4px;
}

/* Smooth transitions between steps */
.step-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
