/* Tasarım Kök Değişkenleri (Light & Modern) */
:root {
    --bg-main: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f8;
    --border-color: #e8ecf2;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Gradient Renkler */
    --gradient-start: #14b8a6;  /* Teal */
    --gradient-end: #6366f1;    /* Indigo */
    --gradient-purple: #7c3aed; /* Purple for arrows */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Arka Plan Dekoratif Elementler */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, rgba(0,0,0,0) 70%);
    bottom: -100px;
    left: -100px;
}

/* Konteyner Yapısı */
.portal-container {
    width: 100%;
    max-width: 900px;
    padding: 0.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
    margin-top: 0;
}

/* Header Tasarımı */
.portal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.logo-wrapper {
    width: 150px;
    height: 150px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.15rem;
    color: var(--text-primary);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 450px;
    margin-top: 0.75rem;
}

/* Kartların Düzeni */
.portal-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 600px;
}

/* Ana Kart / Buton Yapısı */
.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Kart İkonu */
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-icon .material-symbols-rounded {
    font-size: 20px;
    color: #ffffff;
}

/* Kart Bilgileri */
.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-title span {
    font-weight: 400;
    color: var(--text-secondary);
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Ok İkonu */
.card-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gradient-purple);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.card-arrow .material-symbols-rounded {
    font-size: 18px;
}

.portal-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Footer Tasarımı */
.portal-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    color: var(--text-primary);
}

.footer-tagline span {
    color: var(--gradient-purple);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02rem;
}

/* Login */
.login-container {
    max-width: 480px;
    gap: 1.5rem;
}

.login-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 0.25rem;
}

.login-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04rem;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.login-error {
    font-size: 0.85rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.login-submit {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-submit .material-symbols-rounded {
    font-size: 20px;
}

.login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.login-back:hover {
    color: var(--text-primary);
}

.login-back .material-symbols-rounded {
    font-size: 18px;
}

/* Mobil Uyum Tasarımı (Responsive) */
@media (max-width: 768px) {
    .portal-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .logo-wrapper {
        width: 225px;
        height: 225px;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.15rem;
    }
    
    .brand-tagline {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .portal-card {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .card-icon .material-symbols-rounded {
        font-size: 20px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .portal-container {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    
    .logo-wrapper {
        width: 225px;
        height: 225px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.1rem;
    }
    
    .brand-tagline {
        font-size: 0.75rem;
    }
    
    .portal-card {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        border-radius: 16px;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
    }
    
    .card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .card-icon .material-symbols-rounded {
        font-size: 18px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-desc {
        font-size: 0.7rem;
    }
    
    .card-arrow {
        width: 24px;
        height: 24px;
    }
    
    .card-arrow .material-symbols-rounded {
        font-size: 16px;
    }
    
    .footer-tagline {
        font-size: 0.75rem;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
}
