* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #252525;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.login-header p {
    font-size: 14px;
    color: #888;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #7f1d1d;
    border: 1px solid #FD5A46;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13px;
}

.error-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #666;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #058CD7;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.input-wrapper input::placeholder {
    color: #666;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    position: static;
    width: 18px;
    height: 18px;
    color: #666;
    pointer-events: auto;
    transition: color 0.2s;
}

.toggle-password:hover svg {
    color: #aaa;
}

.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #058CD7;
    border: 1px solid #0477b8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.btn-login:hover {
    background: #0477b8;
    border-color: #036699;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.btn-login svg {
    width: 18px;
    height: 18px;
}

/* Mobile */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 24px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}
