/**
 * Register Page Styles
 * Specific styles for the registration page (uses auth.css for common styles)
 */

/* Register specific form container */
.register-form-container {
    max-width: 752px;
}

.register-form-container .form-title {
    font-size: 22px;
    line-height: 28px;
    white-space: nowrap;
}

/* User Type Selection */
.user-type-selection {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.user-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 6px 13px;
    border-radius: 8px;
    border: none;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-btn.active {
    background: #a3ce4d;
}

.user-type-btn:not(.active) {
    background: rgba(182, 182, 182, 0.58);
}

.user-type-btn:hover {
    opacity: 0.9;
    background: #a3ce4d;
}

.user-type-btn:focus {
    background: #a3ce4d;
}

.user-type-btn .check-icon {
    display: none;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #ffffff;
}

.user-type-btn.active .check-icon {
    display: block;
}

.user-type-btn .check-icon img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Register specific section title spacing */
.register-form-container .section-title {
    margin: 0 0 7px 0;
}

/* Register specific form section spacing */
.register-form-container .form-section {
    margin-bottom: 16px;
}

.register-form-container .form-row {
    margin-bottom: 8px;
}

/* Inline form group for register */
.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.form-group-inline .form-group {
    min-width: 0;
}

.form-group-inline > .select-wrapper {
    min-width: 0;
}

.form-group-inline > .form-input {
    min-width: 0;
}

.form-group-inline > .form-group-composite {
    min-width: 0;
}

.form-group-inline .form-group-with-icon {
    min-width: 0;
}

/* Composite input group (select + input trong cùng 1 field) */
.form-group-composite {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: stretch;
    border: 1px solid #108d52;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.composite-separator {
    width: 1px;
    background: #d0d5dd;
    align-self: stretch;
    margin: 6px 0;
}

.form-group-composite .select-wrapper.select-inline {
    border: none;
    border-radius: 0;
}

.form-group-composite .select-wrapper.select-inline .form-select {
    border: none;
    border-radius: 0;
    padding: 10px 30px 10px 14px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4' fill='none'%3E%3Cpath d='M3.99989 3.82C3.73323 3.82 3.49323 3.71333 3.27989 3.5L0.639893 0.86L1.35989 0.18L3.99989 2.82L6.63989 0.18L7.35989 0.86L4.71989 3.5C4.50656 3.71333 4.26656 3.82 3.99989 3.82Z' fill='%23667085'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
}

.form-group-composite .form-input-inline {
    border: none;
    border-radius: 0;
    padding: 10px 14px;
}

/* Icon inputs specific to register */
.form-group-with-icon .input-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 16px;
    z-index: 1;
    pointer-events: none;
}

.form-group-with-icon input[type="email"] {
    padding-left: 36px;
    padding-right: 14px;
}

.form-group-with-icon input[type="password"],
.form-group-with-icon input[type="text"] {
    padding-left: 14px;
    padding-right: 40px;
}

/* Select Wrapper for register */
.select-wrapper {
    position: relative;
    min-width: 80px;
}

.select-wrapper .form-select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4' fill='none'%3E%3Cpath d='M3.99989 3.82C3.73323 3.82 3.49323 3.71333 3.27989 3.5L0.639893 0.86L1.35989 0.18L3.99989 2.82L6.63989 0.18L7.35989 0.86L4.71989 3.5C4.50656 3.71333 4.26656 3.82 3.99989 3.82Z' fill='%23667085'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
}

.select-wrapper .form-select option {
    color: rgba(0, 0, 0, 0.87);
    background: #ffffff;
}

/* Hide the SVG arrow elements */
.select-arrow {
    display: none;
}

/* Checkbox for register */
.form-checkbox {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 16px 0;
    max-width: 758px;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #108d52;
    cursor: pointer;
}

.form-checkbox label {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.87);
    cursor: pointer;
}

.form-checkbox .link {
    color: #108d52;
    text-decoration: underline;
    text-underline-position: from-font;
}

.form-checkbox .link:hover {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .register-form-container .form-title {
        font-size: 20px;
    }
    
    .user-type-selection {
        justify-content: center;
        gap: 8px;
    }
    
    .user-type-btn {
        flex: 1;
        font-size: 14px;
        padding: 6px 10px;
        height: 36px;
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .form-group-inline .select-wrapper {
        width: 100%;
    }
    
    .form-checkbox {
        align-items: center;
        gap: 8px;
    }
    
    .form-checkbox input[type="checkbox"] {
        margin-top: 0;
    }
    
    .form-checkbox label {
        font-size: 12px;
        line-height: 18px;
    }
}

@media (max-width: 480px) {
    .register-form-container .form-title {
        font-size: 18px;
    }
}

