/* Modern Login/Register Page */

.modern-auth-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.modern-auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.login_form,
.register_form {
    padding: 0;
}

.modern-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.modern-form:hover {
    box-shadow: 0 4px 20px rgba(248, 122, 5, 0.12);
    transform: translateY(-2px);
}

.modern-form h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid #F87A05;
    padding-bottom: 15px;
}

.modern-form p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.modern-form a {
    color: #F87A05;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modern-form a:hover {
    color: #E06804;
    text-decoration: underline;
}

.form_ext {
    width: 100%;
    position: relative;
    height: auto; /* Allow dynamic height */
    overflow: visible; /* Ensure content is not clipped */
    margin-bottom: 25px;
}

.form_ext input {
    width: 100%;
    height: auto; /* Adjust height dynamically */
    color: #2c3e50;
    padding: 10px 12px; /* Adjust padding for better spacing */
    border: 1px solid #ccc; /* Add a visible border */
    outline: none;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form_ext input:focus {
    background: #fff;
    border-color: #F87A05; /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(248, 122, 5, 0.3); /* Add focus effect */
}

.form_ext label {
    position: absolute;
    bottom: 0px;
    left: 0%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: none;
}

.form_ext label::after {
    content: "";
    position: absolute;
    left: 0px;
    bottom: -1px;
    width: 100%;
    height: 100%;
    border-bottom: 3px solid #F87A05;
    transform: translate(0);
    transition: transform 0.3s ease;
}

.content-name {
    position: absolute !important;
    bottom: 5px !important;
    left: 0px;
    transition: all 0.3s ease;
    transform: translateY(-100%);
    font-size: 12px;
    color: #F87A05;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.log_reg_btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
}

.log_reg_btn .btn {
    background: #F87A05;
    color: #fff;
    border: 0;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(248, 122, 5, 0.3);
}

.log_reg_btn .btn:hover {
    background: #E06804;
    box-shadow: 0 6px 18px rgba(248, 122, 5, 0.4);
    transform: translateY(-2px);
}

.log_reg_btn .btn:active {
    transform: translateY(0);
}

/* Checkbox styling */
div[style*="flex-direction: row;"] {
    margin: 20px 0;
}

.checkbox_area {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #F87A05;
}

/* Error messages */
.alert-danger {
    background-color: #fee;
    border: 1px solid #f88;
    color: #c33;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Updated styles for form labels and inputs */
.form {
    position: relative;
    margin-bottom: 25px;
}

.form input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f9fa;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form input:focus {
    outline: none;
    background: #fff;
    border-color: #F87A05;
    box-shadow: 0 0 5px rgba(248, 122, 5, 0.3);
}

.form label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: #f8f9fa;
    padding: 0 5px;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.form input:focus + label,
.form input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #F87A05;
    z-index: 1;
}

.form .content-name {
    font-size: 12px;
    color: #F87A05;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .modern-auth-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-form {
        padding: 30px 20px;
    }

    .modern-form h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form_ext {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .modern-auth-container {
        padding: 20px 15px;
    }

    .modern-form {
        padding: 20px 15px;
    }

    .modern-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .log_reg_btn .btn {
        width: 100%;
    }
}