@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/images/restaurant-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(1);
    z-index: 0;
}

/* Floating shapes animation */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.bg-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: #FF7900;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: #FF7900;
    bottom: -50px;
    right: -50px;
    animation-delay: 3s;
}

.bg-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: #FF7900;
    top: 50%;
    left: 10%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Login container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Glass card effect */
.login-card {
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: none;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo/Title section */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #FF7900;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: pulse 2s infinite;
    box-shadow: 0 10px 30px rgba(255, 121, 0, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    text-shadow: none;
}

.login-subtitle {
    font-size: 14px;
    color: #000000;
    font-weight: 300;
}

/* Form elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: none;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 121, 0, 0.3);
    border-radius: 12px;
    color: #000000;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: #000000;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #FF7900;
    box-shadow: 0 0 20px rgba(255, 121, 0, 0.3);
    transform: translateY(-2px);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF7900' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.form-select option {
    background: #000000;
    color: #ffffff;
}

/* Error messages */
.error-container {
    background: rgba(204, 0, 0, 0.3);
    border: 1px solid rgba(255, 51, 51, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.error-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-container li {
    color: #ffffff;
    font-size: 14px;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.error-container li::before {
    content: '⚠';
    margin-right: 8px;
    font-size: 16px;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: #FF7900;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 121, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 121, 0, 0.7);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 24px;
    }
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}