/* ===== SHARED LOGIN STYLES ===== */

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

/* ===== BACKGROUND VARIANTS ===== */
body.bg-admin {
    background: linear-gradient(135deg, rgba(42,63,84,0.92) 0%, rgba(38,185,154,0.85) 100%),
                url('../mentahan2/assets/img/bg-masthead.jpg');
}

body.bg-user {
    background: linear-gradient(135deg, rgba(42,63,84,0.92) 0%, rgba(38,185,154,0.85) 100%),
                url('../mentahan2/assets/img/meja.jpg');
}

/* ===== ANIMATED BLOBS ===== */
body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(38, 185, 154, 0.15);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    animation: blob 20s infinite ease-in-out;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(42, 63, 84, 0.2);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    animation: blob 15s infinite ease-in-out reverse;
    pointer-events: none;
}

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -40px) scale(1.1); }
    66%       { transform: translate(-30px, 30px) scale(0.9); }
}

/* ===== CARD ===== */
.login-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.45s ease-out;
}

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

/* ===== HEADER ===== */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-icon {
    width: 76px;
    height: 76px;
    background: rgba(38, 185, 154, 0.25);
    border: 2px solid rgba(38, 185, 154, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 13px 16px 13px 48px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #26b99a;
    background: rgba(38, 185, 154, 0.1);
    box-shadow: 0 0 0 4px rgba(38, 185, 154, 0.15);
}

/* ===== BUTTON ===== */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #26b99a, #1abb9c);
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 16px rgba(38, 185, 154, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 185, 154, 0.5);
    background: linear-gradient(135deg, #1abb9c, #17a589);
}

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

/* ===== MESSAGES ===== */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #ef4444;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    animation: shake 0.4s;
}

.success-message {
    background: rgba(16, 185, 129, 0.15);
    border-left: 4px solid #10b981;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-8px); }
    75%       { transform: translateX(8px); }
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

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

.divider span { padding: 0 14px; }

/* ===== OTHER LOGINS ===== */
.other-logins {
    display: flex;
    gap: 10px;
}

.other-login-btn {
    flex: 1;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.25s;
}

.other-login-btn:hover {
    border-color: #26b99a;
    background: rgba(38, 185, 154, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== REGISTER LINK ===== */
.register-link {
    text-align: center;
    margin-top: 4px;
}

.register-link p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 10px;
}

.register-link a {
    display: inline-block;
    padding: 11px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s;
}

.register-link a:hover {
    background: rgba(38, 185, 154, 0.2);
    border-color: #26b99a;
    transform: translateY(-2px);
}

/* ===== BACK LINK ===== */
.back-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link a:hover {
    color: #26b99a;
    transform: translateX(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-container {
        padding: 36px 24px;
        margin: 16px;
    }
    .login-header h2 { font-size: 22px; }
}
