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

.login-page {
    height: 100vh;
    background-image: url('/common-assets/images/Ashida_Logo.png'), url('/common-assets/images/Background.png');
    background-repeat: no-repeat;
    background-size: 185px, cover;
    /* background-position: 98% 20px, 13% 15px, center center; */
    background-position: 10% 10%, center center;
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    overflow: hidden;
}

#svg-background-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding-top: 5%;
}

.bottom-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 20px;
}

/* Enhanced login card */
.login-card {
    background: transparent;
    backdrop-filter: blur(3px);
    border: 1px solid rgb(198, 202, 249);
    border-radius: 24px;
    padding: 20px 45px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 40px rgba(0, 255, 255, 0.1);
    animation: cardPulse 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 20;
    overflow: hidden;
    align-self: center;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, transparent 25%, rgba(0, 255, 255, 0.3) 50%, transparent 75%);
        border-radius: 24px;
        z-index: -1;
        animation: shimmer 5s ease-in-out infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    40% {
        transform: translateX(100%);
    }

    40.1%, 100% {
        transform: translateX(100%);
    }
}

@keyframes cardPulse {
    0% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 40px rgba(0, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 60px rgba(0, 255, 255, 0.2);
    }
}

.email-field,
.password-field {
    position: relative;
    margin-bottom: 20px;
}

.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
}

    .field-icon path {
        transition: stroke 0.3s ease;
    }

    .field-icon:hover {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
    }

.field-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    /* color: #00ffff; */
    transition: all 0.3s ease;
    user-select: none;
}

.field-text-cnf-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    /* color: #00ffff; */
    transition: all 0.3s ease;
    user-select: none;
}

.field-text-again-cnf-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    /* color: #00ffff; */
    transition: all 0.3s ease;
    user-select: none;
}

/* .field-text:hover {
            opacity: 1;
            color: #ffffff;
        } */

input {
    padding: 7px 50px 7px 50px !important;
    /* background: rgba(255, 255, 255, 0.1) !important; */
    border: 2px solid rgba(0, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    /* color: #ffffff !important; */
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
}

    input::placeholder {
        color: black !important;
        font-weight: 400;
    }

    /* input:focus {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(0, 255, 255, 0.5) !important;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) !important;
            outline: none !important;
        } */

    input:focus + .field-icon path {
        stroke: #00ffff;
    }

.login-card .page-card-head {
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .login-card .page-card-head img {
        margin-top: 5px;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
    }

.login-card .page-card-actions {
    text-align: center;
    margin-top: 20px;
}

.login-card .card-header p {
    font-weight: 700;
    /* font-size: 18px; */
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: 0;
}

.card-header {
    background: transparent !important;
    border: none !important;
    padding-bottom: 20px 0 !important;
}

.card-footer {
    background: transparent !important;
    border: none !important;
}

    .card-footer a {
        color: #00ffff !important;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 11px;
    }

        .card-footer a:hover {
            color: #ffffff !important;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
        }

#message-body {
    color: #ff4757;
    padding: 0 12px;
    margin-bottom: 20px;
    height: 42px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.3) 25%, rgba(0, 255, 255, 0.6) 50%, rgba(0, 255, 255, 0.3) 75%, transparent 100%);
    margin: 20px 0;
}

.btn-light {
    background: rgba(0, 255, 255, 0.1) !important;
    border: 2px solid rgba(0, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .btn-light::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
        transition: left 0.5s ease;
    }

    .btn-light:hover::before {
        left: 100%;
    }

    .btn-light:hover {
        background: rgba(0, 255, 255, 0.2) !important;
        border-color: rgba(0, 255, 255, 0.6) !important;
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.4) !important;
        transform: translateY(-2px);
    }

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

.form-group {
    position: relative;
}

    .form-group::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.05) 50%, transparent 70%);
        border-radius: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .form-group:focus-within::before {
        opacity: 1;
    }

.simcir-connector {
    stroke: red;
    stroke-width: 3;
}

/* Multi-step form styles */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

/* image {
            animation: pulse 0.8s ease-in-out infinite alternate;
        }

        @keyframes pulse {
            0% {
                r: 3;
                filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 16px #ffeb3b);
            }

            100% {
                r: 5;
                filter: drop-shadow(0 0 16px #ffd700) drop-shadow(0 0 32px #ffeb3b);
            }
        } */

/* Enhanced current flow styling with electric blue */
/* .simcir-connector.current-flow {
            stroke: #00bcd4;
            stroke-width: 4;
            filter: drop-shadow(0 0 4px #00bcd4);
            animation: currentPulse 1.2s ease-in-out infinite alternate;
        }

        @keyframes currentPulse {
            0% {
                stroke-width: 3px;
                opacity: 0.7;
                filter: drop-shadow(0 0 3px #00bcd4);
            }

            100% {
                stroke-width: 5px;
                opacity: 1;
                filter: drop-shadow(0 0 8px #00bcd4) drop-shadow(0 0 12px #0097a7);
            }
        } */

/* Enhanced source glow when active */
.source.on rect {
/*    fill: #FFC107;
    stroke: #F57F17;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px #FFC107);*/
/*    animation: sourceGlow 1.5s ease-in-out infinite alternate;*/
}

@keyframes sourceGlow {
    0% {
        filter: drop-shadow(0 0 5px #FFC107);
    }

    100% {
        filter: drop-shadow(0 0 15px #FFC107) drop-shadow(0 0 20px #FFC107);
    }
}

/* Electron styles */
.electron {
    fill: #ffff00;
    filter: drop-shadow(0 0 8px #ffff00) drop-shadow(0 0 15px #ffff00aa);
    animation: glow-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        filter: drop-shadow(0 0 8px #ffff00) drop-shadow(0 0 15px #ffff00aa);
    }

    100% {
        filter: drop-shadow(0 0 12px #ffff00) drop-shadow(0 0 20px #ffff00cc);
    }
}

.electron-path {
    fill: none;
    stroke: transparent;
    stroke-width: 2;
}

/* Component highlighting when electron passes through */
.component-highlight {
    filter: drop-shadow(0 0 8px #00ff00) drop-shadow(0 0 10px #00ff0066);
    transition: filter 0.3s ease;
}

.circle{
    display: none;
}

.hide-element{
    display: none;
}

.vertical, .horizontal{
    stroke-width: 3 !important;
}