/* Authentication Styles */

/* Custom Scrollbar Styling */
.auth-body::-webkit-scrollbar {
    width: 8px;
}

.auth-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.auth-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.auth-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 0;
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.8s ease-out;
    width: 100%;
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    }
}

/* Header Section */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.1);
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.auth-header p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
}

.social-login h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.google-btn:hover {
    border-color: #db4437;
    color: #db4437;
}

.facebook-btn:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.instagram-btn:hover {
    border-color: #E4405F;
    color: #E4405F;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    padding: 0 1rem;
    font-size: 0.9rem;
    position: relative;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group label:hover {
    color: #3498db;
    transform: translateX(2px);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #666;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-wrapper:hover i {
    color: #3498db;
    transform: scale(1.1);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:hover {
    border-color: #bdc3c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
    padding: 0.2rem;
    border-radius: 6px;
}

.checkbox-wrapper:hover {
    background: rgba(52, 152, 219, 0.05);
    color: #3498db;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper:hover .checkmark {
    border-color: #3498db;
    transform: scale(1.05);
}

.checkbox-wrapper input:checked+.checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-wrapper input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

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

.auth-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Demo Credentials */
.demo-credentials {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.demo-credentials h4 {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-account {
    background: white;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.demo-account:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    transform: translateY(-1px);
}

.demo-account strong {
    color: #3498db;
}

/* Footer */
.auth-footer {
    text-align: center;
    color: #666;
}

.auth-footer p {
    margin-bottom: 1rem;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.guest-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    color: #3498db !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.guest-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.guest-link:active {
    transform: translateY(0);
}

/* Background Animation */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

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

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

/* Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    margin: 2rem 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #e74c3c;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.close-modal:active {
    transform: scale(0.95) rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-body {
        padding: 1rem 0;
        align-items: flex-start;
    }

    .auth-container {
        padding: 0.5rem;
    }

    .auth-card {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .auth-header {
        margin-bottom: 1rem;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .social-buttons {
        gap: 0.6rem;
    }

    .social-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .social-login {
        margin-bottom: 1rem;
    }

    .auth-divider {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .auth-body {
        padding: 0.5rem 0;
    }

    .auth-container {
        max-width: 95%;
        padding: 0.3rem;
    }

    .auth-card {
        padding: 1rem;
    }

    .auth-header h1 {
        font-size: 1.3rem;
    }

    .auth-logo {
        width: 50px;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .form-group input {
        padding: 0.7rem 0.7rem 0.7rem 2.2rem;
        font-size: 0.85rem;
    }

    .social-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-height: 700px) {
    .auth-body {
        padding: 0.5rem 0;
        align-items: flex-start;
    }

    .auth-card {
        padding: 1rem;
    }

    .auth-header {
        margin-bottom: 0.8rem;
    }

    .social-login {
        margin-bottom: 1rem;
    }

    .auth-divider {
        margin: 0.8rem 0;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-options {
        margin-bottom: 1rem;
    }
}