@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* UI: design tokens for consistent auth styling */
:root {
    --auth-bg: #0f172a;
    --auth-surface: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #5b6478;
    --auth-primary: #2e5bff;
    --auth-primary-strong: #1a3ee6;
    --auth-accent: #23b38a;
    --auth-border: #e3e8f0;
    --auth-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    --auth-radius: 18px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins";
    background-color: var(--auth-bg);
    color: var(--auth-text);
}

/* UI: richer backdrop + centered card */
/* UI: diamond-themed background (distinct from previous photo) */
.form_bg {
    background: radial-gradient(900px 420px at 10% 0%, rgba(46, 91, 255, 0.22), transparent 60%),
        radial-gradient(700px 360px at 90% 20%, rgba(35, 179, 138, 0.18), transparent 60%),
        url("../../images/dmnd.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
}

/* UI: dark overlay for contrast */
.form_bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 16, 32, 0.86), rgba(16, 24, 40, 0.45));
}

@media (max-height: 775px) {
    .form_bg {
        min-height: 100%;
    }
}

@media (max-width: 991px) {
    .form_bg {
        min-height: 100vh;
    }
}

/* UI: elevated auth card with rounded edges */
.form_content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--auth-surface);
    display: flex;
    flex-grow: 1;
    min-height: 60vh;
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* UI: form column with vertical centering */
.form_content .left_side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: #f9fafc;
}

@media (max-width: 991px) {
    .form_content .left_side {
        width: 100%;
    }
}

/* UI: consistent form container */
.form_content .left_side .auth-panel {
    width: 100%;
    max-width: 520px;
}

.form_content .left_side form {
    padding: 0;
}

/* UI: brand header */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.auth-product {
    font-weight: 700;
    font-size: 20px;
    color: var(--auth-text);
    letter-spacing: 0.2px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--auth-muted);
}

/* UI: title + helper */
.auth-title {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--auth-text);
    margin-bottom: 6px;
}

.auth-helper {
    color: var(--auth-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.form_content .left_side form .form_group {
    margin-bottom: 20px;
}

/* UI: label styling for clarity */
.form_content .left_side form .form_group label {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--auth-muted);
    margin-bottom: 8px;
}

/* UI: modern input styling + focus ring */
.form_content .left_side .form-control {
    background: #fff !important;
    width: 100%;
    border: 1px solid var(--auth-border) !important;
    border-radius: 12px !important;
    padding: 14px 16px 14px 44px !important;
    font-size: 15px !important;
    line-height: 20px !important;
    color: var(--auth-text) !important;
    box-shadow: none !important;
}

.form_content .left_side .form-control:focus {
    outline: 0;
    border-color: rgba(46, 91, 255, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.15) !important;
}

.form_content .left_side .form-control::-moz-placeholder,
.form_content .left_side .form-control::placeholder {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #9aa3b2;
    opacity: 0.9;
}

/* UI: keep centered inputs balanced (OTP fields) */
.form_content .left_side .form-control.text-center {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* UI: icon coloring + spacing */
.form_content .left_side .svg-icon {
    color: #6b7280;
}

.form_content .left_side form .form_group .icon_input {
    position: relative;
}

.form_content .left_side form .form_group .icon_input .place_icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.form_content .left_side form .form_group .icon_input .eye_icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
}

/* UI: auxiliary links */
.form_content .left_side form ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 18px 0 24px;
    padding: 0;
}

.form_content .left_side form ul li {
    display: inline-block;
}

.form_content .left_side form ul li a {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

/* UI: primary action button */
.btn_login {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    box-shadow: 0 14px 30px rgba(46, 91, 255, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.02em;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-bottom: 16px;
    border: none;
    min-width: 180px;
}

.btn_login:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(46, 91, 255, 0.28);
}

.btn_login:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.2);
}

/* UI: footer text */
.form_content .left_side form p {
    font-weight: 400;
    font-size: 13px;
    line-height: 22px;
    color: var(--auth-muted);
    margin-bottom: 0 !important;
}

.form_content .left_side form p a {
    font-weight: 600;
    color: var(--auth-text);
}

/* UI: checkbox alignment */
.form_content .left_side form .checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--auth-text);
}

.form_content .left_side form .checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form_content .left_side form .checkbox input:checked~.checkmark {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.form_content .left_side form .checkbox input:checked~.checkmark:after {
    display: block;
}

.form_content .left_side form .checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.form_content .left_side form .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 6px;
}

.form_content .left_side form .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* UI: visual panel with overlay and centered copy */
/* UI: diamond-themed hero panel */
.form_content .right_side {
    width: 50%;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(46, 91, 255, 0.2)),
        url("../../images/dmnd.png");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
}

.form_content .right_side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7));
}

/* UI: hero text */
.form_content .right_side h2 {
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
    color: #fff;
    position: relative;
    z-index: 1;
    margin: 0 0 8px 0;
}

.auth-hero-text {
    position: relative;
    z-index: 1;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 22px;
    max-width: 300px;
}

/* UI: generic utilities for auth pages */
.auth-links a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--auth-primary-strong);
    text-decoration: underline;
}

.auth-meta {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-meta a {
    color: var(--auth-text);
    font-weight: 600;
}

@media (max-width: 991px) {
    .form_content {
        border-radius: 16px;
    }

    .form_content .left_side {
        width: 100%;
        padding: 32px 20px;
    }

    .form_content .right_side {
        display: none;
    }
}

/* OTP form controls */
.otp-input {
    display: inline-flex;
}

.otp-form-control {
    -webkit-transition: none;
    transition: none;
    width: 50px;
    height: 50px;
    text-align: center;
}

.otp-form-control:focus {
    color: #3F4254;
    background-color: #ffffff;
    border-color: #884377;
    outline: 0;
}

.otp-form-control.otp-form-control-solid {
    background-color: #f3f5f9;
    border-color: #0179d9;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-form-control.otp-form-control-solid:active,
.otp-form-control.otp-form-control-solid.active,
.otp-form-control.otp-form-control-solid:focus,
.otp-form-control.otp-form-control-solid.focus {
    background-color: #ebf0f3 !important;
    border-color: #ebf0f3 !important;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-form-control:focus {
    color: #555;
    background-color: #fff;
    border-color: #9aaffe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(53 128 252 / 25%) !important;
}

/* Custom checkbox styling */
.styled-checkbox {
    position: absolute;
    opacity: 0;
}

.styled-checkbox+label {
    position: relative;
    cursor: pointer;
    padding: 0;
}

.styled-checkbox+label:before {
    content: "";
    margin-right: 10px;
    display: inline-block;
    vertical-align: text-top;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--auth-border);
    box-shadow: none;
}

/* UI: hover state */
.styled-checkbox:hover+label:before {
    border-color: rgba(46, 91, 255, 0.6);
}

.styled-checkbox:checked+label:before {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.styled-checkbox:disabled+label {
    color: #b8b8b8;
    cursor: auto;
}

.styled-checkbox:disabled+label:before {
    box-shadow: none;
    background: rgb(112, 112, 112);
}

.styled-checkbox+label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 9px;
    background: rgb(255 255 255);
    width: 2px;
    height: 2px;
    box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
    transform: rotate(45deg);
}

.fill_this {
    background-color: #ccc;
    border-radius: 3px;
    display: inline-grid;
    padding: 5px;
    margin-bottom: 5px;
}

/* UI: helper spacing for OTP forms */
.auth-otp {
    margin-top: 10px;
}
