/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE - Standalone Styles
   (Variables in base.css)
   ═══════════════════════════════════════════════════════════════ */

body {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-700) 50%, var(--slate-800) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Floating decorative elements */
.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.decoration-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.decoration-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--slate-400), var(--slate-500));
    top: 50%;
    left: 10%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

/* fadeInUp animation in animations.css */

.login-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.logo-img {
    height: 3rem;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.login-subtitle {
    color: var(--slate-400);
    font-size: 0.9375rem;
}

.login-body {
    padding: 2rem;
}

.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--rose-600);
}

.alert-danger i {
    font-size: 1.25rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.form-control {
    border: 2px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--slate-50);
}

.form-control:focus {
    border-color: var(--slate-400);
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.15);
    background: white;
}

.form-control::placeholder {
    color: var(--slate-400);
}

.btn-login {
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--slate-700) 0%, var(--slate-600) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.3);
}

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

.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: var(--slate-400);
    font-size: 0.875rem;
}

/* Input group with icon */
.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 1.125rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-control:focus + .input-icon {
    color: var(--slate-600);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .login-container {
        max-width: 95%;
        padding: 1rem;
    }
    .login-header {
        padding: 2rem 1.5rem;
    }
    .login-body {
        padding: 1.5rem;
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
        margin: 0 0.5rem;
        padding: 0.75rem;
    }
    .login-header {
        padding: 1.5rem 1rem;
    }
    .login-body {
        padding: 1.25rem;
    }
    .logo-img {
        height: 2.5rem;
    }

    /* Dekoration verkleinern */
    .decoration-1 {
        width: 250px;
        height: 250px;
    }
    .decoration-2 {
        width: 180px;
        height: 180px;
    }
    .decoration-3 {
        width: 120px;
        height: 120px;
    }
}

/* Kleine Mobile (max-width: 400px) */
@media (max-width: 400px) {
    .login-body {
        padding: 1rem;
    }
    .logo-img {
        height: 2rem;
    }

    /* Dekoration auf sehr kleinen Geräten ausblenden */
    .decoration-1,
    .decoration-2 {
        display: none;
    }
    .decoration-3 {
        opacity: 0.3;
    }
}
