/* Custom styles for registration form */

/* Button styling */
#get_verification_code {
    background-color: #7367F0;
    border-color: #7367F0;
    color: white;
    height: calc(1.5em + 0.875rem + 2px);
    padding: 0.4375rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#get_verification_code:hover {
    background-color: #5a52d5;
    border-color: #5a52d5;
}

.btn-primary {
    background-color: #7367F0;
    border-color: #7367F0;
}

.btn-primary:hover {
    background-color: #5a52d5;
    border-color: #5a52d5;
}

/* Form background with logo */
.authentication-wrapper {
    position: relative;
}

.authentication-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/logo-koh-sanuk-simple.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 400px;
    opacity: 0.05;
    z-index: -1;
}

/* Hide demo logo */
.app-brand-logo.demo {
    display: none;
}

/* Adjust brand text styling */
.app-brand-text {
    font-size: 1.5rem;
    margin-left: 0 !important;
}

/* Fix RTL CSS issue */
.light-style .authentication-wrapper.authentication-basic .authentication-inner::before {
    background-color: #fff;
}

/* Ensure verification code row alignment */
.row.mb-6 .col-md-6 {
    display: flex;
    flex-direction: column;
}

.row.mb-6 .col-md-6 .form-control,
.row.mb-6 .col-md-6 #get_verification_code {
    margin-top: auto;
}

/* Form validation error positioning */
.form-error {
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure form groups have relative positioning for error placement */
.form-group, .mb-6 {
    position: relative;
    margin-bottom: 2rem !important; /* Extra space for error messages */
}

/* Style for form validation errors */
.form-error {
    font-size: 0.875rem;
    color: #dc3545;
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
}

