* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b, #312e81);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 42px 38px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;

    font-size: 28px;
    font-weight: bold;

    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.logo h1 {
    color: #111827;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;

    border: 1px solid #d1d5db;
    border-radius: 12px;

    outline: none;

    font-size: 15px;
    color: #111827;

    transition: 0.2s;
}

.input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 65px;
}

.show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #4f46e5;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.login-btn {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

#message {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    min-height: 20px;
}

.loading {
    color: #6b7280;
}

.success {
    color: #16a34a;
    font-weight: 600;
}

.error {
    color: #dc2626;
    font-weight: 600;
}

.register-text {
    text-align: center;
    margin-top: 25px;

    color: #6b7280;
    font-size: 14px;
}

.register-text a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .logo h1 {
        font-size: 24px;
    }
}