/* Login Styles */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-image {
    flex: 1;
    background-image: url('../img/circle.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: black;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
}

.form-group button {
    width: 100%;
    padding: 1.5rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-group button:hover {
    background-color: black;
}

.register-link, .forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link a, .forgot-password a {
    color: black;
    text-decoration: none;
}

.register-link a:hover, .forgot-password a:hover {
    text-decoration: underline;
}

/* Registration Styles */
.register-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    overflow-x: hidden;
}

.register-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: black;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Complete revision of checkbox styling */
.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.checkbox-wrapper label {
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
}

.checkbox-wrapper a {
    color: black;
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-wrapper a:hover {
    text-decoration: none;
}

/* Register button styling */
.register-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    text-align: center;
}

.register-btn:hover {
    background-color: #000;
}

/* Login link styling */
.login-link {
    text-align: center;
    margin-top: 2rem;
}

.login-link a {
    color: black;
    text-decoration: underline;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: none;
}


/* Form Control Styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #000;
    outline: 0;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 100%;
}

/* Search Input with Icon */
.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input input {
    padding-left: 2.5rem;
}

/* Search input refinement */
.search-input input.form-control {
    padding-left: 2.5rem;
    padding-right: 1rem;
}


/* Project Synopsis Textarea */
#project_synopsis, #bio, .textarea-field {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

#project_synopsis:focus, #bio:focus, .textarea-field:focus {
    outline: none;
    border-color: #999;
    /* box-shadow: 0 0 0 2px rgba(0,0,0,0.1); */
}

/* Make the form group for synopsis take full width */
.form-group.full-width {
    width: 100%;
    max-width: 100%;
}

.status-toggle {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #ced4da;
    margin-bottom: 0.5rem;
}

.status-toggle input[type="radio"] {
    display: none;
}

.status-toggle label {
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #ced4da;
    margin: 0;
}

.status-toggle label:last-child {
    border-right: none;
}

.status-toggle input[type="radio"]:checked + label {
    background-color: #000;
    color: white;
}

#preview-button-container {
    /* margin-bottom: 20px; */
    display: flex;
    align-items: center;
}

#preview-profile-link {
    background-color: #000;
    color: white;
    /* padding: 8px 16px; */
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}

#preview-profile-link:hover {
    background-color: #23272b;
}

#preview-profile-link i {
    margin-right: 8px;
}

.preview-note {
    color: #6c757d;
    font-size: 0.9em;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.filter-group .form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0;
    font-size: 1rem;
}

.filter-group .form-control:focus {
    /* border-color: #80bdff; */ /* Replaced by general form-control:focus */
    outline: 0;
    /* box-shadow: 0 0 0 0.2rem rgba(0 123 255 / 25%); */ /* Replaced by general form-control:focus */
}

/* Error hint styling */
.error-hint {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Form validation styling */
input:invalid {
    /* border-color: #dc3545; */
}

input:focus:invalid {
    border-color: #dc3545;
    /* box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); */
}

/* Toggle Switch and Radio Button Styling */
.toggle-switch-group {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #ced4da;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.toggle-option {
    position: relative;
}

.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0%;
    width: 0;
    height: 0;
    margin: 0;
}

.toggle-option label {
    display: inline-block;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    transition: all 0.2s ease;
    border-right: 1px solid #ced4da;
    color: #495057;
}

.toggle-option:last-child label {
    border-right: none;
}

.toggle-option input[type="radio"] + label {
    margin: 0;
}

.toggle-option input[type="radio"]:checked + label {
    background-color: #000;
    color: white;
    margin: 0;
}

.toggle-option input[type="radio"]:focus + label {
    /* box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); */
    z-index: 1;
    position: relative;
    margin: 0;
}

.toggle-option label:hover {
    background-color: #e9ecef;
}

/* Form actions styling */
.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    /* border-top: 1px solid #dee2e6; */
    text-align: center;
}

.form-actions .btn {
    min-width: 200px;
}

.form-hint {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Make sure all form elements respect container width */
input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .login-container {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .filter-controls {
        flex-direction: column;
    }
    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        margin-top: 2px;
    }

    .checkbox-wrapper label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }

    .radio-group { /* Assuming .radio-group might be used elsewhere, basic responsive setup */
        flex-direction: column;
    }

    .radio-option { /* Assuming .radio-option might be used elsewhere */
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Ensure form elements inside specific containers don't cause overflow */
.login-container,
.register-container,
.form-row,
.form-group {
    overflow-x: hidden;
} 