/*
============================================
Dosya: auth.css
Konum: /assets/css/auth.css
Açıklama: Login sayfası stilleri
============================================
*/

/* Login Page Background */
.login-page {
    background: linear-gradient(135deg, #2c5f41 0%, #4a7c59 100%);
    min-height: 100vh;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>');
    pointer-events: none;
}

/* Login Box */
.login-box {
    position: relative;
    z-index: 1;
}

/* Login Logo */
.login-logo a {
    color: #ffffff !important;
    font-size: 2.1rem;
    font-weight: 300;
    text-decoration: none;
}

.login-logo-img {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

/* Login Card */
.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.login-card-body {
    padding: 2.5rem 2rem;
}

.login-box-msg {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c5f41;
    text-align: center;
}

/* Form Elements */
.form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2c5f41;
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 65, 0.25);
}

.input-group-text {
    background: #2c5f41;
    color: white;
    border: 2px solid #2c5f41;
    border-radius: 0 25px 25px 0;
    border-left: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: #1e4229;
}

/* Button */
.btn-primary {
    background: linear-gradient(135deg, #2c5f41 0%, #4a7c59 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e4229 0%, #3a6b48 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 95, 65, 0.3);
}

/* Remember Me */
.icheck-primary input[type="checkbox"]:checked + label::before {
    background-color: #2c5f41;
    border-color: #2c5f41;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Links */
.text-primary {
    color: #2c5f41 !important;
}

.text-primary:hover {
    color: #1e4229 !important;
    text-decoration: none;
}

/* Demo Accounts */
.demo-accounts {
    background-color: #f8f9fa !important;
    border-left: 4px solid #2c5f41;
    border-radius: 8px;
}

/* Loading States */
.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Footer */
.login-footer {
    color: rgba(255, 255, 255, 0.8);
}

.login-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.login-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        width: 90%;
        margin: 5% auto;
    }
    
    .login-card-body {
        padding: 2rem 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    .row .col-7,
    .row .col-5 {
        width: 100%;
        margin-bottom: 1rem;
    }
}