/* Grundreset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Container */
.login-container {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
}

/* Card */
.login-card {
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.login-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* Input Groups */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 16px;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #6366f1);
    transform: translateX(-50%);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.input-wrapper input:focus ~ .focus-border {
    width: 100%;
}

/* Passwort Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #06b6d4;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg,#6366f1,#06b6d4);
    border-radius: 12px;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn::before {
    content: '';
    position: absolute;
    top:0;
    left:-100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Popups in Card */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.5s forwards;
}

.alert.error {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    backdrop-filter: blur(10px);
}

.alert.info {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    backdrop-filter: blur(10px);
}

.alert.success {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    backdrop-filter: blur(10px);
}

.alert.warning {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    backdrop-filter: blur(10px);
}

/* Popup OK Button */
.popup-btn {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background: #f0f0f0;
}

/* Animation */
@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
        margin: 10px;
        border-radius: 20px;
    }
}
