/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Login Sayfası Stilleri */
.login-body {
    background: linear-gradient(135deg, #173b45 0%, #f8eded 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(23, 59, 69, 0.3);
    padding: 40px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #173b45;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8eded;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #ff8225;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 130, 37, 0.1);
}

.form-group input[type="text"].error,
.form-group input[type="password"].error {
    border-color: #b43f3f;
    background: rgba(180, 63, 63, 0.05);
}

.form-group input[type="text"].error:focus,
.form-group input[type="password"].error:focus {
    border-color: #b43f3f;
    box-shadow: 0 0 0 3px rgba(180, 63, 63, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff8225;
}

.checkbox-label span {
    color: #666;
    font-size: 14px;
}

.forgot-password {
    color: #173b45;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ff8225;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #ff8225;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 130, 37, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #e6731f;
    box-shadow: 0 6px 20px rgba(255, 130, 37, 0.6);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-text {
    display: inline-block;
}

.button-loader {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Alert Mesajları */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
}

.alert-error {
    background: rgba(180, 63, 63, 0.1);
    border: 1px solid #b43f3f;
    color: #b43f3f;
}

.alert-error .alert-icon {
    stroke: #b43f3f;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #15803d;
}

.alert-success .alert-icon {
    stroke: #22c55e;
}

.alert-warning {
    background: rgba(255, 130, 37, 0.1);
    border: 1px solid #ff8225;
    color: #cc6820;
}

.alert-warning .alert-icon {
    stroke: #ff8225;
}

.alert-info {
    background: rgba(23, 59, 69, 0.1);
    border: 1px solid #173b45;
    color: #173b45;
}

.alert-info .alert-icon {
    stroke: #173b45;
}

/* Eski error-message için uyumluluk */
.error-message {
    margin-top: 20px;
    padding: 12px 15px;
    background: rgba(180, 63, 63, 0.1);
    border: 1px solid #b43f3f;
    border-radius: 8px;
    color: #b43f3f;
    font-size: 14px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive Tasarım */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
}
