/* Login Page Styles matching Register Page */
/* Premium Floating Inputs Overrides */
.form-floating>.form-control,
.form-floating>.form-select {
    height: 60px;
    line-height: 1.25;
    border-radius: 12px;
    background-color: #f7f9fc !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.form-floating>.form-control:focus,
.form-floating>.form-select:focus {
    background-color: #fff !important;
    border-color: #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-floating>label {
    color: #6c757d;
    padding-top: 1rem;
}

/* Input Group styling for Phone */
.input-group.bg-light {
    background-color: #f7f9fc !important;
    border-radius: 12px !important;
    /* Remove overflow-hidden to allow Select2 dropdown to show */
    overflow: visible !important;
}

/* Ensure the first and last elements in the group round their corners since the group no longer clips */
.input-group.bg-light> :first-child,
.input-group.bg-light> :first-child .form-select,
.input-group.bg-light> :first-child .input-group-text {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.input-group.bg-light> :last-child,
.input-group.bg-light> :last-child .form-control {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.input-group:focus-within {
    background-color: #fff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Phone code Select2 customization */
.phone-code-wrapper {
    position: relative;
    z-index: 1050;
    /* Ensure it floats above subsequent fields if needed */
}

.phone-code-wrapper .select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    height: 60px !important;
    display: flex;
    align-items: center;
}

.phone-code-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    color: #000;
    font-weight: 600;
    padding-left: 10px;
}

.phone-code-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

/* Checkbox & Radio Styling */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border-color: #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--ikincirenk);
    border-color: var(--ikincirenk);
}

/* Button Hover Effect */
.hover-up {
    transition: transform 0.2s;
}

.hover-up:hover {
    transform: translateY(-2px);
}

/* Hide standard select2 for this page to use native/bootstrap floating select */
.select2-container {
    display: none;
    /* Default hide */
}

/* Only show select2 inside our wrapper */
.phone-code-wrapper .select2-container {
    display: block !important;
}

/* Password Strength Meter */
.password-strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.password-strength-meter .strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Password Actions (Generate & Toggle) */
.password-action-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    padding: 0 5px;
    transition: color 0.2s;
}

.password-action-btn:hover {
    color: #000;
}

/* Positioning specific buttons */
.btn-toggle-password {
    right: 15px;
}

.btn-generate-password {
    right: 45px;
    /* Spaced to the left of the toggle button */
}

/* Ensure input has room for buttons */
/* The input needs padding-right */

.invalid-feedback {
    font-size: 12px;
    margin-top: 5px;
}

.input-padding-right-80 {
    padding-right: 80px !important;
}

.input-padding-right-50 {
    padding-right: 50px !important;
}

.register-full-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #fff;
    /* Ensure it overlays anything unexpected */
    position: relative;
    z-index: 10;
}

.auth-content-wrapper {
    min-height: 80vh;
    padding: 30px;
}

.auth-form-container {
    max-width: 500px;
    width: 100%;
}

.auth-heading {
    font-size: 32px;
    font-weight: 600;
    color: #0E0E0E;
}

.auth-banner-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-banner-image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-bg-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    top: 0;
    left: 0;
}

.phone-code-select {
    min-width: 100px;
    border-radius: 12px 0 0 12px;
}

/* MAIN ACTION BUTTONS - BLACK (Like Register) */
.btn-submit-custom,
#btn-check-user,
#btn-verify {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff;
    height: 56px;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.btn-submit-custom:hover,
#btn-check-user:hover,
#btn-verify:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* SECONDARY COLOR OVERRIDES */
.btn-primary {
    background: var(--ikincirenk) !important;
    border-color: var(--ikincirenk) !important;
    color: #fff;
    height: 56px;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.btn-primary:hover {
    filter: brightness(0.9);
}

.text-primary {
    color: var(--ikincirenk) !important;
}

/* Outline Buttons Override */
.btn-outline-primary {
    color: var(--ikincirenk) !important;
    border-color: var(--ikincirenk) !important;
}

.btn-outline-primary:hover {
    background-color: var(--ikincirenk) !important;
    color: #fff !important;
    border-color: var(--ikincirenk) !important;
}

.form-control,
.form-select {
    border-radius: 12px;
    height: 60px;
    background-color: #f7f9fc !important;
    border: 1px solid transparent;
}

.form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 991px) {

    .register-full-section,
    .auth-content-wrapper,
    .auth-banner-container {
        min-height: auto;
        height: auto;
    }

    .auth-banner-container {
        height: 300px;
        order: -1;
    }

    .register-full-section {
        flex-direction: column;
    }
}

/* Global Loader Overlay */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ikincirenk);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}