/* ========================================
   Login-Seite - NOKI Design
   ======================================== */

/* Login-Body mit Hintergrundbild */
body.login-page {
    background: url('../images/welcome-banner-bg.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

body.login-page::before {
    display: none;
}

body.login-page::after {
    display: none;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    animation: slideUp 0.6s ease;
    border-top: 4px solid #6366F1;
}

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

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.logo-container h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-top: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo-container p {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Alerts auf Login-Seite */
.login-card .alert {
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.login-card .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.login-card .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.login-card .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #6366F1;
}

.login-card .alert i {
    font-size: 1.3rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.6rem;
    display: block;
    font-size: 0.95rem;
}

/* Input Group mit Icon */
.input-group-custom {
    position: relative;
}

.input-group-custom i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.2rem;
    z-index: 5;
}

/* Form Control */
.login-card .form-control {
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid #e8ebed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

.login-card .form-control:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.login-card .form-control:hover {
    border-color: #cbd5e0;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    z-index: 10;
    transition: color 0.3s;
    border-radius: 6px;
}

.password-toggle:hover {
    color: #6366F1;
    background: rgba(99, 102, 241, 0.05);
}

/* Passwort vergessen Link */
.forgot-password {
    text-align: right;
    margin-top: 1rem;
}

.forgot-password a {
    color: #6366F1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.forgot-password a:hover {
    color: #4F46E5;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-login:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Message */
.error-message {
    color: #6366F1;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

/* Footer Text */
.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #4a5568;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-text p {
    margin: 0.3rem 0;
}

.footer-text a {
    color: #4a5568;
    text-decoration: underline;
    font-weight: 600;
}

.footer-text a:hover {
    color: #6366F1;
}

/* ========================================
   Logout-Seite
   ======================================== */

/* Icon Container für Logout */
.icon-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.icon-container.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.icon-container.warning {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
}

/* Logout Success/Confirm */
.logout-success,
.logout-confirm {
    text-align: center;
}

.logout-success h2,
.logout-confirm h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.logout-success p,
.logout-confirm p {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Logout Confirm Button */
.btn-logout-confirm {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-logout-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Cancel Button */
.btn-cancel {
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e8ebed;
    border-radius: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #6366F1;
    color: #6366F1;
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e8ebed;
}

.divider span {
    padding: 0 1rem;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Additional Info Box */
.info-box-login {
    background: linear-gradient(135deg, #f8f9fa, #e8ebed);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid #6366F1;
}

.info-box-login p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-box-login i {
    color: #6366F1;
    margin-right: 0.5rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
    body.login-page {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .logo-container h1 {
        font-size: 1.5rem;
    }

    .logo-container img {
        max-width: 150px;
    }

    .icon-container {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .logout-success h2,
    .logout-confirm h2 {
        font-size: 1.5rem;
    }

    .btn-login,
    .btn-logout-confirm,
    .btn-cancel {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .logo-container h1 {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    body.login-page {
        background: white;
    }

    .login-card {
        box-shadow: none;
        border: 1px solid #e8ebed;
    }
}
