﻿/*====================================================
    AMAR SEVA SANGAM LOGIN DESIGN
=====================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins',sans-serif;
    background: #eef4ff;
}

/*==============================
        MAIN LAYOUT
==============================*/

.login-page {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/*==============================
/*====================================================
                LEFT PANEL
====================================================*/

.left-panel {
    position: relative;
    width: 45%;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

    /* Decorative Circles */

    .left-panel::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: rgba(91,70,255,.04);
        top: -260px;
        right: -220px;
        z-index: 2;
    }

    .left-panel::after {
        content: "";
        position: absolute;
        width: 450px;
        height: 450px;
        border-radius: 50%;
        background: rgba(70,150,255,.04);
        bottom: -220px;
        left: -220px;
        z-index: 2;
    }


/*====================================================
            BACKGROUND IMAGE
====================================================*/


.dashboard-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../../Content/assets/image/login-dashboard-12.png');
    background-repeat: no-repeat;
    /* Show full image */
    background-size: 105% 100%;
    /* Bottom left alignment */
    background-position: left bottom;
    pointer-events: none;
}

.changepassword-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../../Content/assets/image/change-password.png');
    background-repeat: no-repeat;
    /* Show full image */
    background-size: 105% 100%;
    /* Bottom left alignment */
    background-position: center center;
    pointer-events: none;
}

.registration-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../../Content/assets/image/registration.png');
    background-repeat: no-repeat;
    /* Show full image */
    background-size: 105% 100%;
    /* Bottom left alignment */
    background-position: center center;
    pointer-events: none;
}


/*====================================================
                OVERLAY DOTS
====================================================*/

.overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: radial-gradient(#d5dcff 1px,transparent 1px);
    background-size: 18px 18px;
    opacity: .18;
}


/*====================================================
                CONTENT
====================================================*/

.left-content {
    position: absolute;
    z-index: 20;
    top: 55px;
    left: 55px;
    width: 430px;
}


/*====================================================
                LOGO
====================================================*/

.company-logo {
    width: 165px;
    margin-bottom: 38px;
}


/*====================================================
                HEADING
====================================================*/

.left-content h1 {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 70px;
    font-weight: 800;
    color: #0b2358;
}


/*====================================================
                SUBTITLE
====================================================*/

.left-content h4 {
    margin: 0;
    font-size: 24px;
    line-height: 35px;
    font-weight: 500;
    color: #5663d8;
}

    .left-content h4 span {
        font-weight: 700;
        color: #4b2ce0;
    }


/*====================================================
                DIVIDER
====================================================*/

.divider {
    width: 80px;
    height: 4px;
    background: #5a3cff;
    border-radius: 30px;
    margin: 26px 0;
}


/*====================================================
                DESCRIPTION
====================================================*/

.left-content p {
    margin: 0;
    color: #666f80;
    font-size: 21px;
    line-height: 38px;
    font-weight: 400;
}


/*====================================================
            FLOAT ANIMATION
====================================================*/

.dashboard-image {
    animation: leftImage 8s ease-in-out infinite;
}

.changepassword-image {
    animation: leftImage 8s ease-in-out infinite;
}

.registration-image {
    animation: leftImage 8s ease-in-out infinite;
}

@keyframes leftImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}
/*==============================
      RIGHT PANEL
==============================*/

.right-panel {
    width: 55%;
    background: #f5f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .right-panel:before {
        content: "";
        position: absolute;
        width: 650px;
        height: 650px;
        border-radius: 50%;
        background: rgba(92,76,255,.05);
        right: -280px;
        top: -250px;
    }

    .right-panel:after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: rgba(38,112,255,.05);
        left: -220px;
        bottom: -220px;
    }

/*==============================
        LOGIN CARD
==============================*/

.login-card {
    position: relative;
    z-index: 10;
    width: 600px;
    background: #fff;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 25px 70px rgba(40,60,120,.15);
    animation: fadeUp .8s;
}


.register-card {
    position: relative;
    z-index: 10;
    width: 740px;
    background: #fff;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 25px 70px rgba(40,60,120,.15);
    animation: fadeUp .8s;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==============================
      HEADER ICON
==============================*/

.icon-circle {
    width: 55px;
    height: 55px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient( 135deg, #7b2cff, #2977ff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 12px 35px rgba(80,70,255,.35);
    margin-bottom: 8px;
}
/*====================================================
    FORM CONTROLS
=====================================================*/

.login-card h2,
.register-card h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2f3f92;
    margin-bottom: 5px;
}

.login-card h5,
.register-card h5 {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.sub-title {
    text-align: center;
    color: #4f46e5;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.input-group {
    box-shadow: none;
}

.input-group-text {
    width: 55px;
    border: 1px solid #dbe4ff;
    border-right: none;
    background: #f8faff;
    color: #4f46e5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px 0 0 12px;
}

.form-control,
.form-select {
    height: 55px;
    border: 1px solid #dbe4ff;
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: none;
    font-size: 15px;
    transition: .3s;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #5b63ff;
        box-shadow: 0 0 0 0.2rem rgba(91,99,255,.15);
    }

.input-group button {
    border-radius: 0 12px 12px 0;
    border: 1px solid #dbe4ff;
    border-left: none;
    background: #fff;
}

    .input-group button:hover {
        background: #f8faff;
    }

/*====================================================
    LINKS
=====================================================*/

.forgot-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

    .forgot-link:hover {
        color: #2d2dd8;
        text-decoration: underline;
    }

/*====================================================
    LOGIN BUTTON
=====================================================*/

.login-btn,
.register-btn {
    height: 40px;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(135deg,#6d28d9,#2563eb);
    transition: .35s;
}

    .login-btn:hover,
    .register-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(79,70,229,.35);
        color: #fff;
    }

    .login-btn:disabled,
    .register-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

/*====================================================
    SECURITY BOX
=====================================================*/

.security-box {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8faff;
    border: 1px solid #dce5ff;
    border-radius: 15px;
    padding: 8px;
}

.security-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4f46e5;
    font-size: 22px;
}

.security-box h6 {
    margin-bottom: 4px;
    font-weight: 600;
    color: #1f2937;
}

.security-box p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 20px;
}

/*====================================================
    PASSWORD CARD
=====================================================*/

.password-card {
    margin-top: 0px;
    background: #f8faff;
    border: 1px solid #dce5ff;
    border-radius: 15px;
    padding: 20px;
}

    .password-card h6 {
        margin-bottom: 18px;
        color: #4f46e5;
        font-weight: 700;
    }

    .password-card ul {
        margin: 0;
    }

    .password-card li {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .password-card i {
        width: 20px;
    }

.success {
    color: #16a34a;
    font-weight: 500;
}

.danger {
    color: #dc2626;
    font-weight: 500;
}

/*====================================================
    REGISTER / LOGIN LINKS
=====================================================*/

.register-area,
.login-area {
    margin-top: 8px;
    text-align: center;
    font-size: 15px;
    color: #6b7280;
}

    .register-area a,
    .login-area a {
        color: #4f46e5;
        text-decoration: none;
        font-weight: 700;
        margin-left: 4px;
    }

        .register-area a:hover,
        .login-area a:hover {
            text-decoration: underline;
        }

/*====================================================
    SCROLLBAR
=====================================================*/

.register-card {
    max-height: 90vh;
    overflow: auto;
}

    .register-card::-webkit-scrollbar {
        width: 6px;
    }

    .register-card::-webkit-scrollbar-thumb {
        background: #b8c4ff;
        border-radius: 10px;
    }

/*====================================================
    RESPONSIVE
=====================================================*/

@media(max-width:1200px) {

    .login-card,
    .register-card {
        width: 500px;
        padding: 35px;
    }

    .left-content h1 {
        font-size: 50px;
    }

    .left-content h4 {
        font-size: 24px;
        line-height: 38px;
    }
}

@media(max-width:992px) {

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
    }

    .login-card,
    .register-card {
        width: 92%;
        max-width: 520px;
    }

    body {
        overflow: auto;
    }
}

@media(max-width:576px) {

    .login-card,
    .register-card {
        padding: 25px;
        border-radius: 18px;
    }

    .icon-circle {
        width: 75px;
        height: 75px;
        font-size: 32px;
    }

    .login-card h2,
    .register-card h2 {
        font-size: 22px;
    }

    .login-card h5,
    .register-card h5 {
        font-size: 13px;
    }

    .form-control,
    .form-select {
        height: 50px;
        font-size: 14px;
    }

    .login-btn,
    .register-btn {
        height: 50px;
        font-size: 15px;
    }

    .password-card {
        padding: 15px;
    }
}

/*====================================================
    SMOOTH ANIMATION
=====================================================*/

.form-control,
.form-select,
.login-btn,
.register-btn,
.input-group-text,
.security-box,
.password-card {
    transition: all .3s ease;
}

.login-card:hover,
.register-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px rgba(0,0,0,.18);
}
/*=========================================
        PREMIUM UI EFFECTS
=========================================*/

/* Floating Background */

.right-panel::before {
    animation: rotateCircle 30s linear infinite;
}

.right-panel::after {
    animation: rotateCircle2 25s linear infinite;
}

@keyframes rotateCircle {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCircle2 {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/*=========================================
            CARD EFFECT
=========================================*/

.login-card,
.register-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: .45s;
}

    .login-card:hover,
    .register-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 35px 80px rgba(0,0,0,.18);
    }


/*=========================================
            INPUT EFFECT
=========================================*/

.form-control,
.form-select {
    transition: .35s;
}

    .form-control:hover,
    .form-select:hover {
        border-color: #4f46e5;
    }

    .form-control:focus,
    .form-select:focus {
        transform: scale(1.02);
    }


/*=========================================
        ICON HOVER
=========================================*/

.input-group-text {
    transition: .35s;
}

.input-group:hover .input-group-text {
    background: #4f46e5;
    color: #fff;
}


/*=========================================
            BUTTON
=========================================*/

.login-btn,
.register-btn {
    position: relative;
    overflow: hidden;
}

    .login-btn:before,
    .register-btn:before {
        content: "";
        position: absolute;
        width: 40px;
        height: 250%;
        background: rgba(255,255,255,.25);
        top: -100px;
        left: -80px;
        transform: rotate(25deg);
        transition: .7s;
    }

    .login-btn:hover:before,
    .register-btn:hover:before {
        left: 120%;
    }


    /*=========================================
        BUTTON CLICK
=========================================*/

    .login-btn:active,
    .register-btn:active {
        transform: scale(.97);
    }


/*=========================================
        SECURITY CARD
=========================================*/

.security-box {
    transition: .4s;
}

    .security-box:hover {
        background: #eef2ff;
        transform: translateY(-3px);
    }


/*=========================================
        PASSWORD CARD
=========================================*/

.password-card {
    transition: .4s;
}

    .password-card:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,.08);
    }


/*=========================================
        LOGO
=========================================*/

.company-logo {
    animation: logoFloat 4s ease infinite;
}

@keyframes logoFloat {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}


/*=========================================
        LOGIN ICON
=========================================*/

.icon-circle {
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(79,70,229,.45);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(79,70,229,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79,70,229,0);
    }
}


/*=========================================
        FORM LABEL
=========================================*/

label {
    transition: .3s;
}

.form-group:hover label {
    color: #4f46e5;
}


/*=========================================
        REGISTER LINK
=========================================*/

.register-area a,
.login-area a {
    position: relative;
}

    .register-area a:after,
    .login-area a:after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        background: #4f46e5;
        left: 0;
        bottom: -2px;
        transition: .35s;
    }

    .register-area a:hover:after,
    .login-area a:hover:after {
        width: 100%;
    }


/*=========================================
        INPUT SHADOW
=========================================*/

.input-group {
    transition: .35s;
}

    .input-group:hover {
        transform: translateY(-2px);
    }


/*=========================================
        CARD ENTRY
=========================================*/

.login-card,
.register-card {
    animation: fadeSlide .15s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=========================================
        SCROLL BAR
=========================================*/

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #8ba6ff;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #edf2ff;
}


/*=========================================
        PAGE FADE
=========================================*/

body {
    animation: pageLoad .7s ease;
}

@keyframes pageLoad {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/*=========================================
        MOBILE
=========================================*/

@media(max-width:768px) {

    .login-card,
    .register-card {
        padding: 25px;
    }

    .security-box {
        flex-direction: column;
        text-align: center;
    }

    .security-icon {
        margin: auto;
    }

    .password-card .row {
        display: block;
    }

    .password-card .col-md-6 {
        width: 100%;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
    }
}


/*=========================================
        VERY SMALL SCREEN
=========================================*/

@media(max-width:480px) {

    .login-card,
    .register-card {
        width: 95%;
        padding: 20px;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .login-card h2,
    .register-card h2 {
        font-size: 20px;
    }

    .login-card h5,
    .register-card h5 {
        font-size: 12px;
    }

    .login-btn,
    .register-btn {
        height: 48px;
        font-size: 15px;
    }

    .company-logo {
        width: 130px;
    }
}

/*======================================
    CHANGE PASSWORD
======================================*/

.password-panel h1 span {
    color: #6c2cf5;
}

.security-image {
    width: 90%;
    margin: auto;
    display: block;
    animation: floatImage 5s ease-in-out infinite;
}

.security-footer {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

    .security-footer div {
        flex: 1;
    }

    .security-footer i {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: #eef2ff;
        color: #5b34f2;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
        font-size: 26px;
        margin-bottom: 12px;
    }

    .security-footer h6 {
        font-weight: 700;
        margin-bottom: 5px;
    }

    .security-footer small {
        color: #666;
    }

.password-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef2ff;
    color: #5b34f2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.password-card {
    border: 1px solid #dce5ff;
    background: #f9fbff;
    border-radius: 18px;
    padding: 12px;
}

    .password-card li {
        margin-bottom: 12px;
        font-size: 14px;
    }

        .password-card li i {
            width: 20px;
        }

.success {
    color: #16a34a;
}

.danger {
    color: #dc2626;
}

.divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .divider-line:before,
    .divider-line:after {
        content: "";
        flex: 1;
        height: 1px;
        background: #ddd;
    }

    .divider-line span {
        margin: 0 20px;
        font-weight: 700;
        color: #666;
    }

/*=========================================
    CHANGE PASSWORD PREMIUM EFFECTS
=========================================*/

/* Glass Effect */

.login-card {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Floating Card */

.login-card {
    animation: cardFloat 1s ease;
}

@keyframes cardFloat {

    from {
        opacity: 0;
        transform: translateY(40px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icon Animation */

.icon-circle {
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(91,52,242,.4);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(91,52,242,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(91,52,242,0);
    }
}

/* Button Shine */

.register-btn {
    position: relative;
    overflow: hidden;
}

    .register-btn:before {
        content: "";
        position: absolute;
        left: -100px;
        top: 0;
        width: 80px;
        height: 100%;
        background: rgba(255,255,255,.25);
        transform: skewX(-20deg);
        transition: .8s;
    }

    .register-btn:hover:before {
        left: 120%;
    }

    .register-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(91,52,242,.35);
    }

/* Input Animation */

.input-group {
    transition: .3s;
}

    .input-group:hover {
        transform: translateY(-2px);
    }

.form-control:focus {
    border-color: #6c2cf5;
    box-shadow: 0 0 0 .18rem rgba(108,44,245,.15);
}

/* Password Card Hover */

.password-card {
    transition: .35s;
}

    .password-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0,0,0,.08);
    }

/* Security Footer */

.security-footer div {
    transition: .3s;
}

    .security-footer div:hover {
        transform: translateY(-6px);
    }

        .security-footer div:hover i {
            background: #6c2cf5;
            color: #fff;
        }

/* OTP Button */

.input-group .btn-outline-primary {
    border-radius: 0 12px 12px 0;
    border-color: #6c2cf5;
    color: #6c2cf5;
    font-weight: 600;
}

    .input-group .btn-outline-primary:hover {
        background: #6c2cf5;
        color: #fff;
    }

/* Login Link */

.login-area {
    text-align: center;
    font-size: 15px;
}

    .login-area a {
        text-decoration: none;
        font-weight: 700;
        color: #5b34f2;
    }

        .login-area a:hover {
            text-decoration: underline;
        }

/* Background Glow */

.password-panel:before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(108,44,245,.08);
    border-radius: 50%;
    bottom: -180px;
    left: -150px;
}

/* Floating Illustration */

.security-image {
    animation: floatSecurity 6s ease-in-out infinite;
}

@keyframes floatSecurity {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Scroll */

.login-card {
    max-height: 92vh;
    overflow-y: auto;
}

    .login-card::-webkit-scrollbar {
        width: 6px;
    }

    .login-card::-webkit-scrollbar-thumb {
        background: #b6b6ff;
        border-radius: 20px;
    }

/* Responsive */

@media(max-width:1200px) {

    .security-footer {
        display: none;
    }
}

@media(max-width:992px) {

    .password-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
    }

    .login-card {
        width: 95%;
        max-width: 560px;
    }

    body {
        overflow: auto;
    }
}

@media(max-width:768px) {

    .login-card {
        padding: 28px;
    }

    .password-card .row {
        display: block;
    }

    .password-card .col-md-6 {
        width: 100%;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

@media(max-width:480px) {

    .login-card {
        padding: 20px;
    }

        .login-card h2 {
            font-size: 22px;
        }

    .sub-title {
        font-size: 18px;
    }

    .form-control {
        height: 48px;
    }

    .register-btn {
        height: 50px;
    }
}