@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a365d; /* Koyu lacivert (Kurumsal) */
    --accent-color: #e53e3e; /* Kırmızı (Dorak tarzı buton rengi) */
    --accent-hover: #c53030;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --bg-gradient: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    padding: 20px;
    background-color: #f6f8fd;
    background-image:
        url('arkaplan.jpeg'),
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-size: cover, cover, cover, cover;
    background-position: center center, center center, center center, center center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed;
}

body.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 50, 0.24);
    pointer-events: none;
    z-index: 0;
}

.glass-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 24px 90px rgba(10, 28, 62, 0.20);
    border-radius: 28px;
    width: 100%;
    max-width: 650px;
    padding: 40px;
    animation: fadeIn 0.6s ease-out;
    overflow: hidden;
}

.login-container {
    max-width: 430px;
    background: rgba(255, 255, 255, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 40px 120px rgba(7, 24, 60, 0.20);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.12) 100%);
    pointer-events: none;
    border-radius: 28px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.user-info-bar {
    background: rgba(26, 54, 93, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    border: 1px solid rgba(26, 54, 93, 0.1);
}

.user-info-bar span {
    font-weight: 600;
    color: var(--primary-color);
}

.logout-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: var(--accent-hover);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group label span.required {
    color: var(--accent-color);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.form-control:read-only {
    background: rgba(0, 0, 0, 0.02);
    cursor: not-allowed;
    color: var(--text-secondary);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.file-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(26, 54, 93, 0.05);
    border: 1px dashed rgba(26, 54, 93, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.file-upload:hover {
    background: rgba(26, 54, 93, 0.1);
    border-color: var(--primary-color);
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.3);
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #276749;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #9b2c2c;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

/* Login & Register Page specific */
.login-container {
    max-width: 400px;
}

.register-container {
    max-width: 560px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Logo and Responsive tweaks */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 90px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .glass-container {
        padding: 20px;
        margin: 10px;
    }
    .header h2 {
        font-size: 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .user-info-bar div {
        flex-direction: column;
    }
    .btn-secondary, .logout-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}
