/**
 * Login Sayfası Custom CSS
 * Onay.cc - Belge Takip Sistemi
 * Tailwind CSS ile uyumlu custom stiller
 */

/* Custom Animations - Tailwind ile uyumlu */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tailwind utility classes için custom stiller */
.animate-slideInDown {
    animation: slideInDown 0.3s ease-out;
}

/* Floating Label Animations - Tailwind ile uyumlu */
.relative label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.relative input:focus ~ .absolute.bottom-0 {
    width: 100%;
}

/* Error States - Tailwind ile uyumlu */
.relative.error input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.relative.valid input {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

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

/* Error Message */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    animation: slideInDown 0.3s ease-out;
}

/* Button Loading State - Tailwind ile uyumlu */
#loginBtn.loading .btn-text,
#loginBtn.loading .btn-icon {
    opacity: 0;
}

#loginBtn.loading .btn-loading {
    opacity: 1;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Types */
.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

.toast-warning {
    background: #f59e0b;
    color: white;
}

.toast-info {
    background: #6366f1;
    color: white;
}

/* Keyboard Navigation */
.keyboard-navigation *:focus {
    outline: 2px solid #6366f1 !important;
    outline-offset: 2px !important;
}

/* Text Shadow Utility */
.text-shadow-lg {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Custom Border Width */
.border-3 {
    border-width: 3px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .input-container input {
        background: #1e293b;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .input-container input:focus {
        background: #1e293b;
        border-color: #6366f1;
    }
    
    .input-container label {
        color: #cbd5e1;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .input-container input {
        border-width: 3px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .toast,
    .btn-loading {
        display: none !important;
    }
}

/* Tailwind ile uyumlu ek stiller */
.text-shadow-lg {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.border-3 {
    border-width: 3px;
}

/* Loading button için ek stiller */
#loginBtn.loading {
    pointer-events: none;
}

#loginBtn.loading .btn-text,
#loginBtn.loading .btn-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#loginBtn.loading .btn-loading {
    opacity: 1;
    transition: opacity 0.3s ease;
}