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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #7b2ff7;
    --success-color: #00ff88;
    --danger-color: #ff3366;
    --bg-dark: #0a0e27;
    --bg-darker: #050817;
    --text-color: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Rubik', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0f1629 100%);
    background-image: url('../media/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: 400;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0f1629 100%);
    opacity: 0.85;
    z-index: 0;
}

/* Tüm elementler için font kalıtımı */
*, *::before, *::after {
    font-family: inherit;
}

/* Başlıklar için font ayarları */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
}

/* Form elementleri için font */
input, textarea, select, button {
    font-family: 'Rubik', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    animation: fadeInUp 0.5s ease;
    transition: all 0.3s ease;
}

.login-box:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

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

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

.login-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
    filter: brightness(1.1);
}

.login-logo:hover {
    transform: scale(1.05);
}

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

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(0, 212, 255, 0.05);
}

/* Login/Register Dropdown Styles */
.form-group select,
select {
    padding: 12px 40px 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.form-group select:hover,
select:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 212, 255, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300e5ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group select:focus,
select:focus {
    border-color: var(--primary-color);
    border-width: 2px;
    background-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300e5ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group select:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0aec0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-group select option,
select option {
    background: var(--bg-dark);
    color: var(--text-color);
    padding: 12px;
}

.form-group input.readonly-input,
.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(239, 191, 4, 0.3);
    cursor: not-allowed;
    opacity: 0.8;
}

.form-group input.readonly-input:focus,
.form-group input[readonly]:focus {
    border-color: rgba(239, 191, 4, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.form-group-checkbox {
    margin-top: -10px;
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.checkbox-label:hover span {
    color: var(--text-color);
}

.error-message {
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid rgba(255, 51, 102, 0.4);
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    text-align: center;
    transition: all 0.3s ease;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00e5ff, #8a3aff);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-muted);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Register Link */
.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.register-link:hover {
    color: var(--primary-color);
}

.register-link:hover::after {
    width: 100%;
}

/* Powered By */
.powered-by {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    z-index: 10;
    transition: color 0.3s ease;
}

.powered-by:hover {
    color: rgba(255, 255, 255, 0.9);
}

.powered-by-logo {
    height: 20px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.powered-by:hover .powered-by-logo {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-logo {
        max-width: 120px;
    }
    
    .powered-by {
        bottom: 15px;
        right: 15px;
        font-size: 12px;
    }
    
    .powered-by-logo {
        height: 16px;
    }
}

