body {
    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%);
}
