/* Restaurant Login Page Styling */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iq-auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.iq-auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.iq-auth-container {
    position: relative;
    z-index: 2;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
}

.card::before {
    display: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.logo-img {
    animation: none;
    transition: transform 0.3s ease;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: 60px !important;
    height: 60px !important;
}

.welcome-text {
    color: #82277b;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: none;
    -webkit-text-fill-color: initial;
}

.subtitle-text {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: normal;
}

.form-control {
    border-radius: 6px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: #ccc;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #82277b;
    box-shadow: 0 0 0 2px rgba(130, 39, 123, 0.1);
    background: #ffffff;
    transform: none;
    outline: none;
}

.input-group-text {
    display: none;
}

.btn-success {
    background: #82277b;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    width: 100%;
    color: white;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover {
    background: #6e2c8b;
    transform: none;
    box-shadow: 0 2px 8px rgba(130, 39, 123, 0.3);
}

.alert {
    border-radius: 15px;
    border: none;
    animation: slideDown 0.5s ease-out;
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    color: white;
    border-left: 4px solid #c82333;
}

.alert-success {
    background: linear-gradient(45deg, #82277b, #8e44ad);
    border-left: 4px solid #6e2c8b;
}

/* Floating elements for restaurant ambiance */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

/* Remove restaurant decorations */
.restaurant-decoration {
    display: none;
}

.food-icon-1 {
    top: 15%;
    left: 5%;
    animation: pulse 3s infinite;
}

.food-icon-2 {
    top: 60%;
    right: 8%;
    animation: pulse 3s infinite 1s;
}

.food-icon-3 {
    bottom: 25%;
    left: 10%;
    animation: pulse 3s infinite 2s;
}

/* Navbar styling */
.navbar.iq-auth-logo {
    display: none;
}

.navbar .iq-link h8 {
    background: linear-gradient(45deg, #82277b, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
    margin-left: 10px;
}

/* Logo container styling */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(130, 39, 123, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Divider line styling */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #82277b, transparent);
    flex: 1;
}

/* Enhanced button styling */
.btn-success span {
    position: relative;
    z-index: 2;
}

/* Form enhancements */
.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(130, 39, 123, 0.15);
}

/* Animation keyframes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Loading spinner */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        margin: 20px;
        border-radius: 20px;
    }
    
    .logo-img {
        width: 25% !important;
    }
    
    .welcome-text {
        font-size: 1.3rem;
    }
    
    .btn-success {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .restaurant-decoration {
        font-size: 2rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background: rgba(33, 37, 41, 0.95);
        color: #fff;
    }
    
    .form-control {
        background: rgba(255, 255, 255, 0.1);
        border-color: #495057;
        color: #fff;
    }
    
    .input-group-text {
        background: rgba(255, 255, 255, 0.1);
        border-color: #495057;
        color: #82277b;
    }
}

/* Additional styles for exact match */
.form-control::placeholder {
    color: #ccc;
    font-size: 0.9rem;
}

.text-center small {
    color: #999;
    font-size: 0.85rem;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

/* Eye icon styling */
#togglePassword {
    color: #999;
    font-size: 1.1rem;
    z-index: 10;
}

#togglePassword:hover {
    color: #82277b;
}

/* Remove any remaining animations */
.logo-glow {
    display: none;
}

/* Ensure clean spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}