﻿/* ===== Modern HRMS Login ===== */

.custom-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    min-height: 100vh;
    background: #f0f2f5;
    overflow: hidden;
}

/* Subtle gradient accent - no images needed */
.custom-login::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-customColor, #4a5568) 12%, transparent), transparent 70%);
    pointer-events: none;
}
.custom-login::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-customColor, #4a5568) 8%, transparent), transparent 70%);
    pointer-events: none;
}

.custom-login .custom-login-inner {
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative;
    z-index: 2;
}

/* ---- Navbar ---- */
.custom-login .dash-header {
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    box-shadow: none;
    min-height: auto;
}

.custom-login .dash-header .dash-h-item {
    min-height: auto;
}

.custom-login .dash-header .navbar-brand {
    padding: 0;
}

.custom-login .dash-header .navbar-brand a {
    display: block;
    line-height: 1;
}

.custom-login .dash-header .navbar-brand a .logo {
    width: 100%;
}

.custom-login .navbar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

.custom-login .navbar .navbar-collapse {
    justify-content: flex-end;
}

.custom-login .navbar .nav-link {
    padding: 1px 20px;
    position: relative;
    font-weight: 500;
    color: #1e293b;
}

.custom-login .navbar .nav-item .nav-link::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 1px;
    background: #e2e8f0;
    top: 0;
    right: 0;
}

.custom-login .navbar .nav-item:last-of-type .nav-link::after {
    display: none;
}

/* ---- Card ---- */
.custom-login .card {
    box-shadow: none;
    margin-bottom: 0;
    background-color: transparent;
    width: 440px;
}

.custom-login .custom-wrapper {
    padding: 40px 0;
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.custom-login .custom-wrapper .custom-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    z-index: 9;
}

.custom-login .custom-wrapper .card .card-body {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 36px 32px;
}

.custom-login .custom-wrapper .card .card-body h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.custom-login .custom-wrapper .card .card-body h2 span {
    color: var(--color-customColor, #4a5568);
    font-weight: 400;
}

/* ---- Form ---- */
.custom-login .custom-login-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.custom-login .custom-login-form .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.custom-login .custom-login-form .form-control:focus {
    border-color: var(--color-customColor, #4a5568);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-customColor, #4a5568) 15%, transparent);
    background: #fff;
}

.custom-login .custom-login-form .for-pwd {
    font-size: 13px;
    line-height: 1;
}

.custom-login .custom-login-form .login-btn {
    margin-bottom: 20px;
}

.custom-login .custom-login-form .remember-check {
    font-size: 13px;
}

.custom-login .custom-login-form .field-icon {
    position: absolute;
    top: 58%;
    right: 10px;
    line-height: 1;
}

.custom-login .custom-login-form .pss-field {
    position: relative;
}

/* ---- Button ---- */
.custom-login .d-grid .btn-primary {
    border-radius: 10px;
    padding: 11px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.custom-login .d-grid .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-customColor, #4a5568) 30%, transparent);
}

/* ---- Links ---- */
.custom-login a {
    color: var(--color-customColor, #4a5568);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.custom-login a:hover {
    opacity: 0.8;
}

/* ---- Checkbox ---- */
.custom-login .form-check-input:checked {
    background-color: var(--color-customColor, #4a5568);
    border-color: var(--color-customColor, #4a5568);
}

/* ---- Language dropdown ---- */
.custom-login .drp-language .drp-text {
    margin-right: 5px;
}

.custom-login .drp-language a span {
    color: #1e293b !important;
}

.custom-login .dropdown-toggle::after {
    content: "";
    position: absolute;
    height: 6px;
    width: 9px;
    right: 10px;
    top: 18px;
    background: url(../images/down-arrow.svg);
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all ease-in-out 0.3s;
    border: 0;
}

.custom-login .drp-language .btn {
    background: #f1f5f9;
    border-radius: 8px;
    margin: 0;
    padding: 10px 25px 10px 10px;
    border: 1px solid #e2e8f0;
}

.custom-login .drp-language .btn.show {
    border-color: #cbd5e1;
}

.custom-login .drp-language .btn:hover {
    background: #e2e8f0;
}

/* ---- Auth buttons ---- */
.custom-login .autorized-btn {
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.custom-login .autorized-btn .btn {
    max-width: 47%;
    width: 100%;
}

/* ---- Footer ---- */
.auth-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 1199px) {
    .custom-login .custom-wrapper .card .card-body {
        margin: 0 auto;
    }
}

@media only screen and (max-width: 991px) {
    .custom-login .custom-wrapper {
        padding: 20px 0;
    }
    .custom-login .navbar .nav-link {
        padding: 0px 15px;
    }
}

@media only screen and (max-width: 767px) {
    .custom-login .dash-header .navbar-brand {
        max-width: 120px;
    }
    .custom-login .navbar .nav-item .nav-link::after {
        display: none;
    }
    .custom-login .navbar .nav-link {
        padding: 10px 20px;
    }
    .custom-login .custom-wrapper .card .card-body {
        padding: 28px 20px;
        border-radius: 14px;
    }
    .custom-login .navbar .navbar-collapse {
        text-align: center;
        margin-top: 20px;
    }
    .custom-login .dash-header .dash-h-item {
        display: block;
    }
    .custom-login .drp-language a {
        text-align: center;
    }
}

@media only screen and (max-width: 575px) {
    .custom-login .autorized-btn .btn {
        max-width: 100%;
    }
    .custom-login .custom-wrapper .card .card-body {
        padding: 24px 16px;
    }
}
