/* --- Ultra Luxury Login Page Design --- */
:root {
    --primary-yellow: #d4af37; /* Darker, Metallic Gold */
    --yellow-hover: #b5952f;
    --dark-blue: #050A15;
    --card-bg: #ffffff; /* User requested white card */
    --text-main: #050A15; /* Dark text for white card */
    --text-light: #64748b; /* Slate text for secondary */
    --input-bg: #f8fafc; /* Visible gray background for inputs */
    --input-border: rgba(212, 175, 55, 0.4);
}

body {
    background-color: var(--dark-blue);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
}

/* Main Container */
.luxury-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Ambient Floating Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
    animation: drift 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px; height: 400px;
    background: rgba(212, 175, 55, 0.15);
    top: -100px; right: -100px;
}

.orb-2 {
    width: 300px; height: 300px;
    background: rgba(212, 175, 55, 0.08);
    bottom: -50px; left: -50px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Luxury Card */
.luxury-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 60px 50px;
    width: 100%;
    max-width: 450px;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    animation: floatIn 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top Glow Effect */
.card-glow-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 0 20px var(--primary-yellow);
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Header */
.luxury-header {
    text-align: center;
    margin-bottom: 35px;
}

.crown-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.25));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-yellow);
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    animation: slowPulse 3s infinite alternate;
}

@keyframes slowPulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }
    100% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4); }
}

.brand-text {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 5px;
    background: linear-gradient(to right, #ffffff, var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.brand-subtext {
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Admin Alert */
.luxury-alert {
    background: rgba(212, 175, 55, 0.08);
    color: var(--primary-yellow);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Inputs & Animated Borders */
.input-group {
    position: relative;
    margin-bottom: 25px;
    border-radius: 12px;
}

.luxury-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.3s;
    z-index: 5;
}

.input-field {
    width: 100%;
    padding: 16px 20px 16px 50px; /* Space for eye toggle only on left */
    background: var(--input-bg);
    border: 1px solid var(--input-border); /* Visible border */
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    position: relative;
    z-index: 2;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.input-field::placeholder {
    color: #94a3b8;
}

/* The Animated Lines */
.anim-line {
    position: absolute;
    background: var(--primary-yellow);
    transition: all 0.4s ease-in-out;
    pointer-events: none;
    z-index: 3;
    border-radius: 12px;
}

.anim-line.top { top: 0; left: 0; width: 0; height: 2px; }
.anim-line.bottom { bottom: 0; right: 0; width: 0; height: 2px; }
.anim-line.left { bottom: 0; left: 0; width: 2px; height: 0; }
.anim-line.right { top: 0; right: 0; width: 2px; height: 0; }

/* Triggers for animation */
.input-field:focus ~ .anim-line.top,
.input-field:hover ~ .anim-line.top { width: 100%; box-shadow: 0 0 10px var(--primary-yellow); }

.input-field:focus ~ .anim-line.bottom,
.input-field:hover ~ .anim-line.bottom { width: 100%; box-shadow: 0 0 10px var(--primary-yellow); }

.input-field:focus ~ .anim-line.left,
.input-field:hover ~ .anim-line.left { height: 100%; box-shadow: 0 0 10px var(--primary-yellow); }

.input-field:focus ~ .anim-line.right,
.input-field:hover ~ .anim-line.right { height: 100%; box-shadow: 0 0 10px var(--primary-yellow); }

.input-field:focus, .input-field:hover {
    border-color: transparent; /* hide base border so animation lines shine */
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Password Toggle */
.btn-toggle-pass {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0;
    z-index: 5;
}

.btn-toggle-pass:hover {
    color: var(--primary-yellow);
}

/* Submit Button */
.btn-luxury-submit {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-hover) 100%);
    color: var(--dark-blue);
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-luxury-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: 0.6s;
}

.btn-luxury-submit:hover::after {
    left: 100%;
}

.btn-luxury-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e6c240 0%, #c5a017 100%);
}

.btn-luxury-submit i {
    transition: transform 0.3s ease;
}

.btn-luxury-submit:hover i {
    transform: translateX(-5px);
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
    text-align: center;
    animation: shake 0.5s ease;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.show { display: block; }

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

/* Responsive */
@media (max-width: 576px) {
    .luxury-card {
        padding: 50px 30px;
    }
    .brand-text {
        font-size: 1.8rem;
    }
    .crown-icon {
        width: 70px; height: 70px;
        font-size: 1.8rem;
    }
}