body.login-page {
    background: white;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.house-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.form-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-subtitle a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.form-subtitle a:hover {
    color: #2980b9;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.form-control.valid {
    border-color: #2ecc71;
    background: #f0fff4;
}

.form-control.invalid {
    border-color: #e74c3c;
    background: #fff5f5;
}

.input-feedback {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.input-feedback.show {
    display: block;
}

.input-feedback.success {
    color: #2ecc71;
}

.input-feedback.error {
    color: #e74c3c;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    display: none;
}

.input-icon.show {
    display: block;
}

.input-icon.success {
    color: #2ecc71;
}

.input-icon.error {
    color: #e74c3c;
}

/* PIN Code Kutucukları (Flutter'daki gibi) */
.pin-code-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 15px auto;
    max-width: 100%;
    flex-wrap: nowrap;
}

.pin-code-input {
    width: 32px;
    height: 42px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    flex-shrink: 0;
}

.pin-code-input::placeholder {
    opacity: 0;
}

/* Şifre karakterlerini yıldız yap */
.password-digit {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
    font-family: text-security-disc;
}

.pin-separator {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 18px;
    font-weight: 600;
    margin: 0 2px;
}

@media (max-width: 500px) {
    .pin-code-input {
        width: 28px;
        height: 38px;
        font-size: 14px;
    }
    .pin-code-container {
        gap: 3px;
    }
    .pin-separator {
        font-size: 16px;
        margin: 0 1px;
    }
}

.pin-code-input:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    transform: scale(1.05);
}

.pin-code-input.filled {
    border-color: #2ecc71;
    background: #f0fff4;
}

.pin-label {
    font-weight: 500;
    font-size: 13px;
    color: #67727d;
    margin-bottom: 8px;
    display: block;
}

.phone-input-wrapper {
    position: relative;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #495057;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-submit {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 576px) {
    .form-card {
        padding: 25px 15px;
        margin: 10px;
    }

    .form-title {
        font-size: 20px;
    }

    .house-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ============================================
   THEME VARIANTS (Context-based skins)
   ============================================ */

/* Building Theme (default - blue) */
.theme-building .house-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.theme-building .btn-submit {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.theme-building .btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}
.theme-building .form-subtitle a,
.theme-building .forgot-password {
    color: #4facfe;
}
.theme-building .form-subtitle a:hover,
.theme-building .forgot-password:hover {
    color: #00c6fb;
}
.theme-building .form-control:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}
.theme-building .pin-code-input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

/* Association Theme (green) */
.theme-association .house-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.theme-association .btn-submit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.theme-association .btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
}
.theme-association .form-subtitle a,
.theme-association .forgot-password {
    color: #11998e;
}
.theme-association .form-subtitle a:hover,
.theme-association .forgot-password:hover {
    color: #38ef7d;
}
.theme-association .form-control:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
}
.theme-association .pin-code-input:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
}

/* Admin Theme (navy/dark blue) */
.theme-admin .house-icon {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
}
.theme-admin .btn-submit {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
}
.theme-admin .btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a6fa5 0%, #2c3e50 100%);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}
.theme-admin .form-subtitle a,
.theme-admin .forgot-password {
    color: #4a6fa5;
}
.theme-admin .form-subtitle a:hover,
.theme-admin .forgot-password:hover {
    color: #2c3e50;
}
.theme-admin .form-control:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}
.theme-admin .pin-code-input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* ============================================
   CONTEXT BADGE (for registration pages)
   ============================================ */
.context-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}
.context-badge.building {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}
.context-badge.association {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}
.context-badge.admin {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
    color: white;
}

/* ============================================
   BREADCRUMB (for registration flow)
   ============================================ */
.registration-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #7f8c8d;
}
.registration-breadcrumb .step {
    display: flex;
    align-items: center;
    gap: 6px;
}
.registration-breadcrumb .step.active {
    color: #2c3e50;
    font-weight: 600;
}
.registration-breadcrumb .step.completed {
    color: #2ecc71;
}
.registration-breadcrumb .step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #e9ecef;
    color: #7f8c8d;
}
.registration-breadcrumb .step.active .step-number {
    background: #3498db;
    color: white;
}
.registration-breadcrumb .step.completed .step-number {
    background: #2ecc71;
    color: white;
}
.registration-breadcrumb .separator {
    color: #dee2e6;
    font-size: 10px;
}

/* Theme-specific breadcrumb colors */
.theme-building .registration-breadcrumb .step.active .step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.theme-association .registration-breadcrumb .step.active .step-number {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.theme-admin .registration-breadcrumb .step.active .step-number {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
}

/* ============================================
   AUTH LOGIN LAYOUT (auth/login.php, portal/login.php)
   ============================================ */
body.login-page {
    background: #f3f6fb;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(1120px, 100%);
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(18, 36, 66, 0.12);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(360px, 480px) 1fr;
}

.login-panel {
    padding: 34px 36px;
}

.login-panel-inner {
    max-width: 400px;
}

.login-back {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4a6fa5;
    text-decoration: none;
    margin-bottom: 14px;
}

.login-back:hover {
    color: #2c3e50;
}

.login-brand {
    margin-bottom: 16px;
}

.login-heading {
    margin: 0 0 6px;
    font-size: 42px;
    line-height: 1.05;
    color: #1d2a3b;
    font-weight: 800;
}

.login-lead {
    margin: 0 0 22px;
    color: #5f6f82;
    font-size: 15px;
}

.login-form {
    display: block;
}

.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2b3b4f;
}

.login-phone-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.login-country-trigger {
    height: 46px;
    border: 1px solid #d5dde8;
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.login-input-icon-wrap {
    position: relative;
}

.login-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8ea0b4;
    font-size: 13px;
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d5dde8;
    border-radius: 12px;
    background: #fff;
    padding: 0 12px 0 34px;
    font-size: 15px;
    color: #1f2f42;
}

.login-input:focus {
    outline: none;
    border-color: #4a90ff;
    box-shadow: 0 0 0 3px rgba(74, 144, 255, 0.15);
}

.login-pin-row {
    justify-content: flex-start;
    margin: 8px 0 0;
}

.login-pin-cell {
    width: 36px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d4dce7;
}

.login-required {
    color: #8ea0b4;
    text-decoration: none;
    cursor: default;
}

.login-row {
    margin-top: 10px;
}

.login-submit {
    height: 46px;
    border-radius: 12px;
    margin-top: 12px;
}

.login-footnote {
    margin: 14px 0 0;
    font-size: 14px;
    color: #5f6f82;
}

.login-footnote a {
    color: #4a6fa5;
    font-weight: 600;
    text-decoration: none;
}

.login-footnote a:hover {
    color: #2c3e50;
}

.login-art {
    position: relative;
    background: linear-gradient(140deg, #dfeefd 0%, #e9f4ff 35%, #f7fbff 100%);
    min-height: 620px;
}

.login-art-inner,
.login-art-img {
    width: 100%;
    height: 100%;
}

.login-art-img {
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 992px) {
    .login-shell {
        padding: 12px;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-art {
        display: none;
    }

    .login-panel {
        padding: 22px 18px;
    }

    .login-heading {
        font-size: 34px;
    }
}
