/* HSPTL Authentication Pages Styling */
:root {
    --primary-color: #06BBCC;
    --primary-dark: #059aa9;
    --primary-light: #7fdce5;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

body.auth-page {
    background-color: #f5f8fa;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 0.9rem;
}

/* Navbar styling */
.auth-navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
}

.auth-navbar .navbar-brand {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-navbar .nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 6px 12px;
}

.auth-navbar .nav-link:hover {
    color: var(--primary-color);
}

/* Split container layout */
.auth-split-container {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
}

.auth-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.auth-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/pattern.svg');
    background-size: cover;
    opacity: 0.08;
}

.info-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.auth-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-info .lead {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.auth-info .text-primary {
    color: var(--white) !important;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.auth-form {
    flex: 1;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-box {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.auth-box h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(6, 187, 204, 0.15);
    outline: none;
}

.input-group {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #666;
    font-size: 0.9rem;
}

.input-group .form-control {
    border-radius: 0 4px 4px 0;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.text-danger {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    width: 90%;
    max-width: 350px;
    position: relative;
    animation: modalFade 0.3s ease-in-out;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-button:hover {
    color: #333;
}

#modal-title {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Helper classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Patient Form Specific Styles */
.clinic-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.clinic-header h2 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 1.4rem;
}

.clinic-header p {
    margin: 2px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Tab styling */
.nav-tabs {
    border-bottom: 1px solid var(--primary-color);
}

.nav-tabs .nav-link {
    color: #555;
    border: 1px solid #ddd;
    border-bottom: none;
    background-color: #f8f9fa;
    margin-right: 4px;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: #fff;
    border-color: #ddd;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    background-color: #fff;
    border-color: #ddd;
    min-height: 300px;
    padding: 20px;
}

.form-navigation {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.next-btn, .prev-btn {
    min-width: 100px;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        transform: translateY(15px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .auth-split-container {
        flex-direction: column;
    }
    
    .auth-info, .auth-form {
        padding: 30px 16px;
    }
    
    .auth-info {
        min-height: 50vh;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .auth-info h1 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .auth-box {
        padding: 16px;
    }
    
    .auth-info h1 {
        font-size: 1.8rem;
    }
    
    .form-control {
        padding: 6px 10px;
    }
    
    .btn-primary {
        padding: 8px 14px;
    }
} 