* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    animation: fadeIn 0.6s ease;
}

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

.card h1 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.card .subtitle {
    text-align: center;
    font-size: 13px;
    color: #a8c0d0;
    margin-bottom: 28px;
}

.icon-lock {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-lock svg {
    width: 42px;
    height: 42px;
    stroke: #4fd1c5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #cfe3ec;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: 0.25s;
}

.form-group input:focus {
    border-color: #4fd1c5;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: #7f95a3;
}

button.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4fd1c5, #2c9c8f);
    color: #04231f;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 6px;
}

button.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 209, 197, 0.35);
}

.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #a8c0d0;
}

.switch-link a {
    color: #4fd1c5;
    text-decoration: none;
    font-weight: 600;
}

.switch-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

.alert-error {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff8080;
}

.alert-success {
    background: rgba(79, 209, 197, 0.15);
    border: 1px solid rgba(79, 209, 197, 0.4);
    color: #4fd1c5;
}

.dashboard-box {
    text-align: center;
}

.dashboard-box .user-badge {
    display: inline-block;
    background: rgba(79, 209, 197, 0.15);
    border: 1px solid rgba(79, 209, 197, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    color: #4fd1c5;
    font-size: 13px;
    margin-bottom: 20px;
}

.logout-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff8080;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s;
}

.logout-btn:hover {
    background: rgba(255, 82, 82, 0.25);
}
