/* Fontlar css/fonts.css dosyasından yüklenir */

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

body {
    font-family: "SF Pro Display", sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.login-container {
    max-width: 440px;
}

.login-mode-step {
    width: 100%;
    margin-bottom: 2rem;
}

.login-mode-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.login-mode-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.login-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 110px;
    padding: 20px 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    font-family: "SF Pro Display", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.login-mode-card--featured {
    min-height: 168px;
    padding: 28px 16px 22px;
    font-size: 16px;
    gap: 14px;
}

.login-mode-card--featured .login-mode-card-icon {
    width: 52px;
    height: 52px;
}

.login-mode-card--featured .login-mode-card-icon svg {
    width: 40px;
    height: 40px;
}

.login-mode-card:hover {
    border-color: #00b894;
    color: #00b894;
    transform: translateY(-1px);
}

.login-mode-card:active {
    transform: translateY(0);
}

.login-mode-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #2d3748;
    transition: color 0.2s ease;
}

.login-mode-card-icon svg {
    width: 32px;
    height: 32px;
}

.login-mode-card:hover .login-mode-card-icon {
    color: #00b894;
}

.login-mode-card-label {
    line-height: 1.35;
}

.login-mode-chip-wrap {
    margin-bottom: 1.25rem;
}

.login-mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
    color: #2d3748;
    font-family: "SF Pro Display", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.login-mode-chip:hover {
    border-color: #00b894;
    background: #f0faf7;
    color: #00b894;
}

.login-mode-chip-back {
    flex-shrink: 0;
    opacity: 0.7;
}

.login-mode-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00b894;
    flex-shrink: 0;
}

.login-mode-chip-icon svg {
    width: 16px;
    height: 16px;
}

.login-mode-chip:hover .login-mode-chip-back,
.login-mode-chip:hover .login-mode-chip-icon {
    opacity: 1;
}

.login-form-inner {
    width: 100%;
}

.daire-picker-fields {
    width: 100%;
}

.daire-picker-fields[hidden] {
    display: none !important;
}

#username-input-group[hidden] {
    display: none !important;
}

.daire-picker-fields .input-field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.portal-home-note {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 14px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.portal-logout-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

@media (max-width: 420px) {
    .login-mode-layout,
    .login-mode-row {
        gap: 10px;
    }

    .login-mode-card {
        min-height: 96px;
        padding: 12px 6px 10px;
        gap: 8px;
        font-size: 11px;
    }

    .login-mode-card--featured {
        min-height: 140px;
        padding: 22px 12px 18px;
        font-size: 15px;
        gap: 12px;
    }

    .login-mode-card-icon {
        width: 32px;
        height: 32px;
    }

    .login-mode-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .login-mode-card--featured .login-mode-card-icon {
        width: 44px;
        height: 44px;
    }

    .login-mode-card--featured .login-mode-card-icon svg {
        width: 34px;
        height: 34px;
    }
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-image {
    width: auto;
    height: 64px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #00b894;
    line-height: 1.35;
    max-width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 14px;
    color: #000000;
}

.login-form {
    width: 100%;
    margin-bottom: 3rem;
}

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

.input-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: "SF Pro Display", sans-serif;
    background-color: #fafafa;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #00b894;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.input-field.found {
    border-color: #00b894 !important;
    background-color: #e8f5e8 !important;
    color: #00b894 !important;
    animation: foundPulse 0.6s ease;
}

@keyframes foundPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(0, 184, 148, 0.1);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

.continue-btn {
    width: 100%;
    padding: 12px;
    background-color: #2d3748;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: "SF Pro Display", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    background-color: #1a202c;
}

.continue-btn:active {
    transform: translateY(1px);
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    text-align: center;
    border: 1px solid #fcc;
}

.email-display,
.username-display {
    margin-bottom: 1.5rem;
}

.email-badge,
.username-badge {
    display: flex;
    align-items: center;
    background-color: #e8f5e8;
    border: 1px solid #a8d8a8;
    border-radius: 8px;
    padding: 12px 16px;
    position: relative;
}

.email-initial,
.username-initial {
    width: 32px;
    height: 32px;
    background-color: #00b894;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.email-text,
.username-text {
    color: #00b894;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
}

.change-email,
.change-username {
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.change-email:hover,
.change-username:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Giriş karşılama bildirimi (panel toast ile aynı) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    border-left: 4px solid #00b894;
    font-family: "SF Pro Display", sans-serif;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { border-left-color: #00b894; }

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}

.toast-content { flex: 1; }

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 20px;
    }

    .toast {
        min-width: 0;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}
