/* ==========================================================================
   Login background - same layout as akirah-core, in the admin green
   ========================================================================== */

.bg-login {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(160deg, #032f2b 0%, #067d74 55%, #12c2b3 100%);
}

.bg-login::before,
.bg-login::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* soft ambient glow, top-left */
.bg-login::before {
    width: 620px;
    height: 620px;
    top: -220px;
    left: -220px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
    filter: blur(6px);
    animation: bgFloat 24s ease-in-out infinite;
}

/* single large brand-mark motif, bottom-right */
.bg-login::after {
    width: 620px;
    height: 470px;
    bottom: -70px;
    right: -90px;
    background-image: url("../../../img/logo-light.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0.08;
    transform: rotate(-4deg);
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, 18px); }
}

.signin-wrapper {
    position: relative;
    z-index: 1;
    flex-direction: column;
}

/* minimal dot-grid texture */
.signin-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.85) 1.4px, transparent 1.4px);
    background-size: 32px 32px;
    opacity: 0.16;
    pointer-events: none;
}

/* ==========================================================================
   Brand block - sits above the card, directly on the background
   ========================================================================== */

.signin-brand {
    text-align: center;
    margin-bottom: 28px;
}

.signin-brand-img {
    display: inline-block;
    height: 26px;
    width: auto;
}

.signin-brand-tagline {
    margin: 10px 0 0 !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ==========================================================================
   Card - frosted glass
   ========================================================================== */

.signin-box {
    width: 400px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 25px 50px -18px rgba(2, 40, 36, 0.45);
    animation: cardRise .5s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes cardRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.signin-box .signin-title-primary {
    display: block;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #10302d;
    margin: 0 0 6px !important;
}

.signin-box .signin-title-secondary {
    display: block;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
    color: #56706d;
    font-weight: 400;
    margin: 0 0 28px !important;
}

/* ==========================================================================
   Form controls
   ========================================================================== */

.signin-box .form-group {
    margin-bottom: 18px;
}

.signin-box .form-control {
    height: 50px;
    border: 1.5px solid rgba(16, 48, 45, 0.10);
    background-color: #f1f8f7;
    border-radius: 13px;
    padding: 0 16px;
    font-size: 14.5px;
    color: #16302d;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.signin-box .form-control:focus {
    border-color: #09A59A;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(9, 165, 154, 0.16);
}

/* field with a leading icon and a floating label */
.signin-field {
    position: relative;
}

.signin-field .form-control {
    padding-left: 44px;
}

.signin-field .form-control::placeholder {
    color: transparent;
}

.signin-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aaeab;
    font-size: 15px;
    pointer-events: none;
    transition: color .18s ease;
    z-index: 1;
}

.signin-field .form-control:focus ~ .signin-field-icon {
    color: #09A59A;
}

.signin-field-label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 14.5px;
    font-weight: 400;
    color: #8a9a98;
    background: transparent;
    padding: 0 4px;
    pointer-events: none;
    transition: all .16s ease;
}

.signin-field .form-control:focus ~ .signin-field-label,
.signin-field .form-control:not(:placeholder-shown) ~ .signin-field-label {
    top: 0;
    left: 36px;
    transform: translateY(-50%) scale(.82);
    color: #09A59A;
    background: #fff;
}

/* six digit code input */
.signin-box .signin-code {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 10px;
}

.signin-box .p-viewer {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    color: #8a9a98;
    z-index: 1;
}

.signin-box .p-viewer:hover {
    color: #09A59A;
}

.signin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.signin-box .ckbox {
    margin-bottom: 0;
}

.signin-box .ckbox span {
    color: #384d4a;
    font-size: 13.5px;
}

.signin-forgot-link {
    color: #09A59A;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
}

.signin-forgot-link:hover {
    color: #067d74;
    text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-custom {
    background-color: #09A59A;
    border-color: #09A59A;
    color: #ffffff;
}

.signin-box .btn-custom {
    height: 48px;
    border: 0;
    border-radius: 13px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .2px;
    background: #09A59A;
    color: #fff;
    box-shadow: 0 12px 24px -8px rgba(9, 165, 154, 0.5);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.signin-box .btn-custom:hover,
.signin-box .btn-custom:focus {
    background-color: #078a80;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -8px rgba(9, 165, 154, 0.55);
}

.signin-box .btn-custom:active {
    transform: translateY(0);
}

.signin-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: #8a9a98;
    font-size: 12.5px;
}

.signin-divider::before,
.signin-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(16, 48, 45, 0.12);
}

.signin-divider span {
    padding: 0 12px;
}

.signin-box .btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1.5px solid rgba(16, 48, 45, 0.14);
    border-radius: 13px;
    background: #fff;
    color: #384d4a;
    font-size: 14.5px;
    font-weight: 600;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.signin-box .btn-google:hover {
    border-color: #09A59A;
    color: #10302d;
    text-decoration: none;
    box-shadow: 0 8px 18px -10px rgba(9, 165, 154, 0.5);
}

.signin-box .btn-google .fa {
    margin-right: 8px;
    font-size: 16px;
    color: #db4437;
}

.signin-box .btn-link {
    color: #09A59A;
    font-size: 13.5px;
    font-weight: 500;
}

.signin-box .btn-link:disabled {
    color: #8a9a98;
}

.signin-box p.mb-1 {
    color: #6b7d7a;
    font-size: 12.5px;
    margin-top: 8px;
}

.signin-back-link {
    display: block;
    text-align: center;
    margin-top: 4px;
    color: #6b7d7a;
    font-size: 13.5px;
    text-decoration: none;
}

.signin-back-link:hover {
    color: #09A59A;
    text-decoration: none;
}

@media (max-width: 480px) {
    .signin-box {
        border-radius: 20px;
        padding: 30px 24px !important;
    }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.text-custom {
    color: #09A59A;
}

.p-viewer {
    float: right;
    margin-top: -32px;
    margin-right: 10px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
