/* Login Page Styles with Animated Orbs */

body.login-page {
    background: linear-gradient(135deg, #2d5a8f 0%, #1e3a5f 100%) !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* ================================================
   Animated Orbs Background
   ================================================ */
.orbs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15) !important;
    /* Removed box-shadow for sharp edges */
    animation: float-orb 20s infinite ease-in-out;
    opacity: 0.8 !important;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.9;
    }

    25% {
        transform: translate(30px, -50px) scale(1.1);
        opacity: 1;
    }

    50% {
        transform: translate(-20px, -30px) scale(0.9);
        opacity: 0.85;
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
        opacity: 0.95;
    }
}

/* More Orbs Definitions */
.orb:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.orb:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 80%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.orb:nth-child(4) {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 5%;
    animation-delay: 6s;
    animation-duration: 30s;
}

.orb:nth-child(5) {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 24s;
}

.orb:nth-child(6) {
    width: 70px;
    height: 70px;
    top: 15%;
    left: 45%;
    animation-delay: 10s;
    animation-duration: 26s;
}

.orb:nth-child(7) {
    width: 110px;
    height: 110px;
    top: 80%;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 29s;
}

.orb:nth-child(8) {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 85%;
    animation-delay: 3s;
    animation-duration: 27s;
}

.orb:nth-child(9) {
    width: 95px;
    height: 95px;
    top: 50%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 23s;
}

.orb:nth-child(10) {
    width: 75px;
    height: 75px;
    top: 85%;
    left: 60%;
    animation-delay: 7s;
    animation-duration: 31s;
}

.orb:nth-child(11) {
    width: 85px;
    height: 85px;
    top: 5%;
    left: 60%;
    animation-delay: 9s;
    animation-duration: 25s;
}

.orb:nth-child(12) {
    width: 65px;
    height: 65px;
    top: 35%;
    left: 25%;
    animation-delay: 11s;
    animation-duration: 28s;
}

.orb:nth-child(13) {
    width: 90px;
    height: 90px;
    top: 15%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 24s;
}

.orb:nth-child(14) {
    width: 110px;
    height: 110px;
    top: 85%;
    left: 85%;
    animation-delay: 5s;
    animation-duration: 29s;
}

.orb:nth-child(15) {
    width: 70px;
    height: 70px;
    top: 45%;
    left: 90%;
    animation-delay: 8s;
    animation-duration: 26s;
}

.orb:nth-child(16) {
    width: 100px;
    height: 100px;
    top: 5%;
    left: 35%;
    animation-delay: 1s;
    animation-duration: 31s;
}

.orb:nth-child(17) {
    width: 80px;
    height: 80px;
    top: 55%;
    left: 5%;
    animation-delay: 4s;
    animation-duration: 23s;
}

.orb:nth-child(18) {
    width: 120px;
    height: 120px;
    top: 90%;
    left: 45%;
    animation-delay: 7s;
    animation-duration: 27s;
}

.orb:nth-child(19) {
    width: 60px;
    height: 60px;
    top: 25%;
    left: 65%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.orb:nth-child(20) {
    width: 95px;
    height: 95px;
    top: 75%;
    left: 75%;
    animation-delay: 3s;
    animation-duration: 25s;
}

/* ================================================
   Header & Footer
   ================================================ */
.login-header {
    width: 100%;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.login-header .brand {
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-header .nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    margin-left: 20px;
    transition: color 0.3s;
}

.login-header .nav-links a:hover {
    color: white;
}

.login-footer {
    width: 100%;
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
}

/* ================================================
   Login Container
   ================================================ */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 340px;
    position: relative;
    margin: 0 auto;
    /* Center horizontally */
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 20px;
    animation: slideDown 0.5s ease-out, float 3s ease-in-out infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================
   Login Box Content
   ================================================ */
.login-box h1 {
    color: #2d5a8f;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    font-size: 20px;
    animation: slideInUp 0.6s ease-out;
}

.login-box h2 {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
    animation: slideInUp 0.7s ease-out;
}

.form-group {
    margin-bottom: 12px;
    animation: fadeIn 0.8s ease-out;
}


.login-box .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: block;
    transition: color 0.3s ease;
    font-size: 12px;
}

.login-box .form-group:focus-within label {
    color: #2d5a8f;
}



.login-box .form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

.login-box .form-group input:focus {
    border-color: #2d5a8f;
    box-shadow: 0 0 0 3px rgba(45, 90, 143, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.login-box .form-group input:valid {
    border-color: #27ae60;
}


.btn-login {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2d5a8f 0%, #3d6fa3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    animation: slideInUp 0.9s ease-out;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 143, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    animation: fadeIn 1s ease-out;
}

.forgot-password a {
    color: #2d5a8f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.forgot-password a:hover {
    color: #3d6fa3;
    text-decoration: underline;
}

.alert {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid;
    animation: slideInUp 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert i {
    font-size: 14px;
}

.logo-section {
    text-align: center;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 32px;
    color: #2d5a8f;
    margin-bottom: 5px;
    animation: bounceIn 0.8s;
}

/* ================================================
   Role Selection
   ================================================ */
.role-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.role-option {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    animation: scaleIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.role-option:hover {
    border-color: #2d5a8f;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 143, 0.15);
}

.role-option.selected {
    border-color: #2d5a8f;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(45, 90, 143, 0.2);
    animation: bounceIn 0.6s ease-out;
}

.role-option input[type="radio"] {
    display: none;
}

.role-icon {
    font-size: 24px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.role-option:hover .role-icon {
    transform: scale(1.1);
}

.role-option.selected .role-icon {
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.role-title {
    font-weight: 700;
    color: #2d5a8f;
    margin-bottom: 2px;
    font-size: 13px;
}

.role-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
}

.role-option:hover .role-desc {
    color: #2d5a8f;
}

.login-form {
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.login-form.active {
    display: block;
    animation: slideInUp 0.4s ease-out;
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .role-selection {
        gap: 8px;
    }

    .login-header {
        padding: 10px 15px;
    }

    .login-header .brand span {
        display: none;
    }
}

/* ================================================
   Booking Modal Styles (Shared with Home Page)
   ================================================ */
.booking-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content {
    background: white !important;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    color: #333;
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-header h3 {
    margin: 0 !important;
    color: white !important;
    font-size: 1.25rem !important;
}

.modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal Form Styles */
#bookingModal .form-label {
    color: #34495e !important;
    font-weight: 600 !important;
}

#bookingModal .form-control {
    border: 1px solid #ced4da !important;
}

#bookingModal .btn-primary {
    background: #3498db !important;
    border-color: #3498db !important;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100% !important;
        margin: 0 !important;
    }
}