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

body {
    font-family: 'Inter', sans-serif;
    background-color: #111;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at center, #2a161a 0%, #111 70%);
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

.login-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.brand-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 2px solid rgba(253, 185, 19, 0.3);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #fdb913;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.login-message {
    display: none;
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.login-message:not(:empty) {
    display: block;
}

.login-message--error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffb4b4;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #aaa;
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 48px; /* space for the toggle */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.password-toggle.is-on {
    color: #fdb913;
    border-color: rgba(253, 185, 19, 0.35);
    background: rgba(253, 185, 19, 0.10);
}

.password-toggle__icon {
    display: block;
}

.form-group input:focus {
    outline: none;
    border-color: #fdb913;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.15);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
    margin-bottom: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #aaa;
    cursor: pointer;
}

.remember-me input {
    accent-color: #fdb913;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-pwd {
    font-size: 0.85rem;
    color: #fdb913;
    text-decoration: none;
    transition: opacity 0.3s;
}

.forgot-pwd:hover {
    opacity: 0.8;
}

.btn-login {
    background-color: #fdb913;
    color: #111;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-login:hover {
    background-color: #ffd052;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 185, 19, 0.2);
}

.btn-login:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.85;
}

.btn-login:disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    .login-card {
        padding: 40px 24px;
    }
}
