/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #f5f5f5;
}

/* Header styles */
.header {
    background-color: #0085AA;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header img {
    width: 100px;
}

/* Container styles */
.container {
    min-height: calc(100vh - 4rem);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Background overlay */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../icons/patient/background.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: 0;
}

/* Form container */
.form-container {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 48rem; /* Increased width to accommodate side-by-side inputs */
    z-index: 1;
}

/* Tabs styling */
.tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tabs a {
    text-decoration: none;
    color: #9ca3af;
    font-weight: 600;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
}

.tabs a.active {
    color: #0085AA;
    border-bottom: 2px solid #0085AA;
}

/* Form title and subtitle */
h3 {
    color: #e67e22;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Alert styling */
.alert {
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    background: red;
    font-size: 20px;
    color: white;
}

/* Input group styling */
.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Create two-column layout for inputs */
.input-group .box {
    width: calc(50% - 0.5rem); /* Two columns with gap in between */
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    font-size: 0.875rem;
    transition: border-color 0.15s ease;
}

/* Account type takes full width */
.input-group select[name="account_type"] {
    width: 100%;
}

/* Password fields in same row */
.input-group input[name="password"],
.input-group input[name="cpassword"] {
    width: calc(50% - 0.5rem);
}

/* Contact and Gender in same row */
.input-group input[name="contact"],
.input-group select[name="Gender"] {
    width: calc(50% - 0.5rem);
}

/* File input and type in same row */
.input-group input[type="file"] {
    width: calc(50% - 0.5rem);
}

/* Submit button takes full width */
.btn {
    width: 30%;
    background-color: #0085AA;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 1rem;
    margin-left: 70%;
}

.btn:hover {
    background-color: #0085AA;
}

/* Form controls focus state */
.box:focus {
    outline: none;
    border-color: #335271;
    background-color: white;
}

/* Footer links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #335271;
}

/* Form validation styles */
.box:invalid {
    border-color: #ef4444;
}

/* Placeholder styling */
.box::placeholder {
    color: #9ca3af;
}

/* Selection styling */
.box option {
    color: #1f2937;
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }

    .input-group .box {
        width: 100%; /* Stack inputs vertically on mobile */
    }

    .input-group input[name="password"],
    .input-group input[name="cpassword"],
    .input-group input[name="contact"],
    .input-group select[name="Gender"],
    .input-group input[type="file"] {
        width: 100%;
    }

}


/**/
/* Submit button */
/*.btn {
    width: 180px;  /
    padding: 0.75rem;
    background-color: #335271;
    color: white;
    border: none;
    border-radius: 50px;  
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: block;
    margin: 2rem auto 1rem;  
}

.btn:hover {
    background-color: #2c4964;
}*/