/* Registration Page Styles */
.register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 2rem 0;
}

.register-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.register-illustration {
    flex: 1;
    background: linear-gradient(135deg, #4b2561 0%, #6d3b8f 100%);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.register-illustration img {
    max-width: 80%;
    margin-bottom: 2rem;
}

.register-illustration h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
}

.register-illustration p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 90%;
    line-height: 1.6;
}

.register-form-container {
    flex: 1;
    padding: 3rem 4rem;
    background: #fff;
}

.register-form-container h2 {
    color: #4b2561;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

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

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e1e1e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #4b2561;
    box-shadow: 0 0 0 3px rgba(75, 37, 97, 0.1);
    background-color: #fff;
}

.custom-select {
    width: 100%;
    padding: 0.1rem 1.2rem;
    border: 2px solid #e1e1e8;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: #4b2561;
    box-shadow: 0 0 0 3px rgba(75, 37, 97, 0.1);
    background-color: #fff;
}

/* File Upload Styles */
.file-input-container {
    margin-bottom: 1.5rem;
}

.file-input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.file-input-wrapper {
    position: relative;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}

.file-input-wrapper:hover {
    border-color: #a0aec0;
    background-color: #f1f5f9;
}

.file-input-wrapper.has-file {
    border-style: solid;
    border-color: #4b2561;
    background-color: #f5f0f9;
}

.file-input-wrapper.has-file .file-name {
    color: #4b2561;
    font-weight: 500;
    background: rgba(75, 37, 97, 0.05);
    border-color: #d6bcfa;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-icon {
    font-size: 2rem;
    color: #718096;
    margin-bottom: 0.5rem;
    display: block;
}

.file-input-text {
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
}

.file-input-hint {
    font-size: 0.875rem;
    color: #a0aec0;
    display: block;
}

.file-preview {
    margin-top: 1rem;
    max-width: 100%;
    border-radius: 0.5rem;
    display: none;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b2561;
    background: rgba(75, 37, 97, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    word-break: break-all;
    display: none; /* Initially hidden */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: all 0.2s ease;
}

.file-input-wrapper.has-file .file-name {
    display: block;
    margin-top: 0.75rem;
    background: rgba(75, 37, 97, 0.05);
    border-color: #d6bcfa;
}

/* Profile Picture Upload */
.cs-upload {
    text-align: center;
    margin-bottom: 2rem;
}

.cs-upload figure {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px dashed #e1e1e8;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.cs-upload figure:hover {
    border-color: #4b2561;
    background: #f5f0f9;
}

.cs-upload figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
}

.cs-upload figure i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cs-upload figure span {
    font-size: 0.9rem;
    color: #6c757d;
}

.cs-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Submit Button */
.btn-register {
    width: 100%;
    padding: 1rem;
    background: #4b2561;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-register:hover {
    background: #3a1d4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 37, 97, 0.2);
}

/* Form Layout */
.register-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Ensure form groups take full width */
.register-form > *:not(.form-columns) {
    width: 100% !important;
    max-width: 100% !important;
}

/* Form Columns */
.form-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure direct children of form columns take full width */
.form-columns > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive Design */
@media (min-width: 768px) {
    .form-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .register-container {
        flex-direction: column;
        max-width: 600px;
        width: 96%;
    }

    .register-illustration {
        padding: 2rem 1.5rem;
    }

    .register-form-container {
        padding: 2rem 1.5rem;
    }
}

/* Full Width Form Elements */
.form-group,
.file-input-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem;
}

/* Style all form controls including textarea */
.form-control,
.file-input-wrapper,
.file-input-wrapper .file-input,
textarea.form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.file-input-wrapper {
    display: block;
}

/* CV textarea specific styles */
textarea.form-control {
    min-height: 120px;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e8;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
}

textarea.form-control:focus {
    border-color: #4b2561;
    box-shadow: 0 0 0 3px rgba(75, 37, 97, 0.1);
    background-color: #fff;
    outline: none;
}

/* Label styling for consistency */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

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

/* Form Validation */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}
