body {
    background-color: #0F172A;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 90dvh;
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
    margin-bottom: 50px;
}

.card {
    border-radius: 15px;
    width: 90%;
    max-width: 768px;
    text-align: center;
    margin: 20px auto 0;
    /* centering */
}

.card img.logo {
    width: 180px;
    margin-bottom: 15px;
}

h1 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
}

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

label {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 16px;
    color: #000;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Generic button styles matching loginBtn */
.btn,
.btn-primary,
#loginBtn,
#registerBtn {
    background: #2e2a2b;
    color: #fff;
    margin-top: 10px;
    cursor: not-allowed;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    transition: background 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn.enabled,
.btn-primary.active,
#loginBtn.enabled,
#registerBtn.active {
    background: var(--primary-color);
    cursor: pointer;
}

.btn.enabled:hover,
.btn-primary.active:hover,
#loginBtn.enabled:hover,
#registerBtn.active:hover {
    background: #d6284c;
    /* slightly darker than primary */
}

/* Social Login */
.social-login {
    margin-bottom: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: filter 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.btn-social:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.btn-social-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}

.btn-social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 12px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.social-login-divider span {
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-transform: lowercase;
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 15px;
    line-height: 1.5;
}

.password-hint {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    transition: all 0.3s ease;
}

.password-hint p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: color 0.3s ease;
}

.password-hint.valid {
    background: rgba(43, 181, 67, 0.1);
    border-left-color: #2bb543;
}

.password-hint.valid p {
    color: #2bb543;
}

.error {
    color: #ff3b6b;
    background: rgba(255, 59, 107, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    display: none;
    border: 1px solid rgba(255, 59, 107, 0.2);
    text-align: center;
}

.back-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 24px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.back-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}