
/* Mein ias Corporate Design - Demo Account Registration */

/* Global reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    line-height: 1.5;
}

*:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Header styling with Mein ias branding */
.ias-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0 0;
}

.ias-header .container {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.ias-header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ias-logo-box {
    background-color: #3B82F6;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.ias-logo-text {
    color: #6B7280;
    font-size: 1.125rem;
}

.ias-header::after {
    background: transparent linear-gradient(270deg,var(--site-primary-color,#01c3d8) 0,var(--site-primary-color,#2695d1) 100%) 0 0 no-repeat;
    content: " ";
    display: block;
    height: .5rem;
    position: static;
    width: 100%;
}
*, ::after, ::before {
    box-sizing: border-box;
}

/* Main content container */
.main-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Form card styling */
.form-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 50rem;
    width: 100%;
    padding: 2rem;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form grid layout */
.form-grid-name {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    column-gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Form field styling */
.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: " *";
    color: #EF4444;
}

.checkbox-label.required::after {
    content: " *";
    color: red;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-input.error {
    border-color: #EF4444;
}

.form-input.error:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Error message styling */
.form-error {
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 0.25rem;
}

/* Password requirements box */
.password-requirements {
    background-color: #F9FAFB;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.password-requirements h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1F2937;
    margin: 0 0 0.5rem 0;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li.valid {
    color: #10B981;
}

.password-requirements li::before {
    content: "•";
    color: #6B7280;
}

.password-requirements li.valid::before {
    content: "✓";
    color: #10B981;
    font-weight: bold;
}

/* Checkbox styling */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-input {
    margin-top: 0.25rem;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.4;
}

/* Submit button - Orange styling as specified */
.submit-button {
    width: 100%;
    background-color: #F97316 !important;
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.submit-button:hover {
    background-color: #EA580C !important;
    transform: translateY(-1px);
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5);
}

.submit-button:disabled {
    background-color: #9CA3AF !important;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Success/Error alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #10B981;
}

.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* Footer with blue gradient */

.footer-gradient {
    background: transparent linear-gradient(270deg,#01c3d8,#2695d1) 0 0 no-repeat;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        gap: 0;
    }
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.9;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-text {
        text-align: left;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}

.footer-links a:hover {
    color: #DBEAFE;
}



/* Responsive design adjustments */
@media (max-width: 640px) {
    .main-container {
        padding: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .ias-header .container {
        padding: 0 0.5rem;
    }
}

/* Icons */
.material-symbols-outlined {
    font-size: 16px;
}