:root {
    --primary-color: #2729c0;
    --primary-dark: #4f46e5;
    --primary-light: #4143DA;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, #dfe3ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ffe6d2 0%, transparent 55%), #f3f5fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top)) 16px;
}

.auth-container {
    width: 100%;
    max-width: 550px;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2.25rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.auth-header {
    margin-bottom: 2rem;
}

.company-logo {
    width: fit-content;
    height: fit-content;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.organization-logo{
    width: 160px;
    max-width: 60%;
}

.auth-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group-text {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0.75rem 1rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

    .form-control:focus {
        box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
        border-color: var(--primary-color);
    }

    .form-control.is-valid {
        border-color: var(--success-color);
    }

    .form-control.is-invalid {
        border-color: var(--danger-color);
    }

.password-toggle {
    cursor: pointer;
    transition: var(--transition);
}

    .password-toggle:hover {
        background: #e2e8f0;
    }

.btn-primary {
    background: linear-gradient(135deg, #0a0c93, #2a2ed6);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

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

    .btn-primary:disabled {
        opacity: 0.7;
        transform: none;
        box-shadow: none;
    }

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.alert {
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: #f0fdf4;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        padding: 0 10px;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .company-logo {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
}


/* Add these styles to the existing CSS in _AccountLayout.cshtml */

.password-strength .progress {
    background-color: #e2e8f0;
    border-radius: 2px;
}

.password-strength .progress-bar {
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Form row spacing */
.row.g-3 {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

    .row.g-3 > [class*="col-"] {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

/* Terms and conditions styling */
.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Password match indicator */
#passwordMatch {
    transition: all 0.3s ease;
}


/* ---- Polish ---- */
body { font-size: 0.925rem; -webkit-font-smoothing: antialiased; }
.auth-card { box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12); }
.auth-container { margin: auto; }
.auth-link, .auth-form a { color: var(--primary-color); font-weight: 600; }
.auth-link:hover, .auth-form a:hover { color: #f36b02; }
.divider { height: 1px; background: var(--border-color); margin: 1.25rem 0; }
.btn-primary { box-shadow: 0 4px 14px rgba(10, 12, 147, 0.28); }
.input-group > .form-control:focus { position: relative; z-index: 3; }

@media (max-width: 575.98px) {
    body { align-items: flex-start; padding: 12px; }
    .auth-container { padding: 0; margin-top: 4vh; }
    .form-control, .input-group-text { font-size: 16px; min-height: 46px; }
    .btn-lg { min-height: 48px; }
    .row.g-3 { margin-left: 0; margin-right: 0; }
    .row.g-3 > [class*="col-"] { padding-left: 0.75rem; padding-right: 0.75rem; }
}
