/* Login Modal Styles */

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.show {
    display: block;
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    display: block;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.login-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    padding: 5px;
    width: auto;
    height: auto;
}

.close-modal-btn:hover {
    color: #000;
}

.login-modal-body {
    padding: 40px;
    flex: 1;
}

.login-modal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 0 0 12px;
    padding: 40px;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-hero-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.login-modal-hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.login-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.login-benefits i {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.login-modal-form {
    padding: 20px;
}

.form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.social-login {
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.social-btn:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
    color: #667eea;
}

.social-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.divider span {
    margin: 0 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label code {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 2px;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.form-check-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #667eea;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 0;
    white-space: nowrap;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.btn-submit {
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: white;
}

.btn-submit img {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-submit:hover img {
    transform: translateX(3px);
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.text-danger {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-modal-hero {
        display: none !important;
    }

    .login-modal-content {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .login-modal-body {
        padding: 30px 20px;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .modal-dialog {
        margin: 10px;
    }

    .login-modal-content {
        max-height: 95vh;
    }

    .form-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .login-modal-hero-content h2 {
        font-size: 24px;
    }

    .close-modal-btn {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-modal-body {
        padding: 20px 15px;
    }

    .form-wrapper {
        margin: 0;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-check-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .social-btn img {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .btn-submit {
        padding: 12px 15px;
        font-size: 14px;
    }
}
