﻿



/* ========== BASE & ANIMATIONS ========== */
.canvaslog {
    width: 150px;
    height: 80px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

    .canvaslog:hover {
        transform: scale(1.02);
    }

.long-btn{
    width:160px !important;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

/* ========== BACKGROUND ENHANCEMENTS ========== */
.login-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
 
}

    .login-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(rgb(197 182 234 / 19%), rgba(20,20,30,0.6)), url('/images/background/PremeiumBG50.jpg');
        /*background: linear-gradient(rgb(197 182 234 / 19%), rgba(20,20,30,0.6));
        */ background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }

    /* Optional: Add animated particles effect */
        .login-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: -1;
    }

/* ========== LOGIN CONTAINER & PAPER ========== */
.mud-container {
    animation: fadeInUp 0.6s ease-out;
}
.text-right{
    text-align : right;
    color:greenyellow;
}
.login-font {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.login-wrapper {
    background-color:white;
    padding: 8px;
    border: 2px solid #333;
    width:100%;
    border-radius:4px 12px 6px 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4), 6px 6px 15px rgba(0, 0, 0, 0.15);
}
.login-wrapperX {
    /*    border: 1px solid #4a6068;
    border-radius: 13px !important;
    padding: 20px 14px 14px 14px;
*/
    position: relative;
    /* Inset shadow + Drop shadow on the right/bottom side 
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2), 6px 6px 15px rgba(0, 0, 0, 0.15);
    margin-top: 10px !important;
    background: #fcfcfc;
    border: 2px solid #333;
    border-radius: 50%; /* curve inside 50% */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 100% 0);
}

    .login-wrapperX::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 0 100% 0 0;
    }
/* Canvas styling */
.login-wrapper canvas {
    border: 1px solid #4a6068;
    border-radius: 5px;
    position: relative;
    z-index: 2; /* Keeps the canvas above the background decoration */
}

    /* Form inputs and buttons to sit safely above background elements */
    .login-wrapper input,
    .login-wrapper button {
        position: relative;
        z-index: 2;
    }    /* ========== LOGIN HEADER ENHANCEMENT ========== */
    .logpane {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white;
        border-radius: 16px;
        padding: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .logpane::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
        transform: rotate(45deg);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ========== TEXT FIELDS ENHANCEMENT ========== */
.loginp {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px !important;
    transition: all 0.3s ease;
    margin:5px 10px; 
}

.mud-input-outlined {
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

    .mud-input-outlined:hover .mud-input-outlined-border {
        border-color: #667eea !important;
    }

    .mud-input-outlined.mud-input-inputcontrol:focus-within {
        transform: translateY(-2px);
    }

        .mud-input-outlined.mud-input-inputcontrol:focus-within .mud-input-outlined-border {
            border-color: #667eea !important;
            border-width: 2px !important;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.mud-input-label {
    font-weight: 500 !important;
    color: #555 !important;
}

.mud-input-adorned-end .mud-icon-button {
    color: #667eea !important;
    transition: transform 0.2s ease;
}

    .mud-input-adorned-end .mud-icon-button:hover {
        transform: scale(1.1);
    }

/* ========== BUTTON ENHANCEMENTS ========== */
.mud-button {
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

    .mud-button:hover {
        transform: translateY(-2px);
    }

    .mud-button:active {
        transform: translateY(0);
    }

/* Primary Buttons */
.mud-button-filled-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

    .mud-button-filled-primary:hover {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

/* Button Ripple Effect */
.mud-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mud-button:active::after {
    width: 100px;
    height: 100px;
}

/* ========== ALERT ENHANCEMENTS ========== */
.mud-alert {
    border-radius: 12px !important;
    animation: slideInRight 0.5s ease-out;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== PROGRESS CIRCULAR ========== */
.mud-progress-circular {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* ========== LIBRARY TABLE ENHANCEMENTS ========== */
.libdisp {
    color: #764ba2;
    font-size: 16px;
    margin: 8px 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

    .libdisp:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.mud-table {
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.mud-table-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

/* ========== CAPTCHA ENHANCEMENTS ========== */
.flexcaptcha {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    margin: 8px 0;
}

.refresh {
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .refresh:hover {
        transform: rotate(180deg);
    }

.border-mn {
    border: 2px solid #667eea;
    border-radius: 8px;
}

#refreshBtn {
    padding: 8px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    #refreshBtn:hover {
        background: #667eea;
        color: white;
        transform: scale(1.05);
    }

#captchaInput {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
}

    #captchaInput:focus {
        border-color: #667eea;
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* ========== ERROR MESSAGE ========== */
#sperr {
    font-size: 13px;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

/* ========== MACHINE ID SECTION ========== */
.mlog {
    margin: 15px 12px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2) !important;
    text-align: center;
    padding: 20px 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

    .mlog:hover {
        transform: translateY(-3px);
    }

/* ========== SELECT LIBRARY SECTION ========== */
.sellib1, .sellib2 {
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 12px !important;
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2, #667eea);
    }

/* ========== TYPOGRAPHY ENHANCEMENTS ========== */
.mud-typography-body1 {
    font-size: 13px;
    color: #555;
}

.mud-typography-h5 {
    font-weight: 700 !important;
}

.mud-typography-h6 {
    font-weight: 600 !important;
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 600px) {
    .mud-paper.login-wrapper {
        padding: 24px 20px !important;
        margin: 16px !important;
    }

    .logpane {
        font-size: 1.2rem !important;
        padding: 10px !important;
    }

    .mud-button {
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .mud-grid-item {
        margin-bottom: 8px;
    }
}

/* ========== CARD & PAPER ENHANCEMENTS ========== */
.mud-paper {
    transition: all 0.3s ease;
}

.mud-card {
    border-radius: 20px !important;
    overflow: hidden;
}

/* ========== ICON ENHANCEMENTS ========== */
.mud-icon-root {
    transition: transform 0.3s ease;
}

.mud-icon-button:hover .mud-icon-root {
    transform: scale(1.1);
}

/* ========== TABLE ROW SELECTION ========== */
.mud-table-row {
    transition: background 0.2s ease;
}


/* ========== TOOLTIP ENHANCEMENTS ========== */
.mud-tooltip {
    border-radius: 4px !important;
    font-size: 12px !important;
    padding:6px 8px;
    background: rgba(0, 0, 0, 0.1);
}

/* ========== LOADING STATES ========== */
.mud-progress-linear {
    border-radius: 2px;
}

/* ========== DIVIDER ENHANCEMENTS ========== */
.mud-divider {
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    height: 2px;
}

/* ========== CONTAINER ENHANCEMENTS ========== */
.mud-container {
    position: relative;
    z-index: 1;
}

/* ========== ADDITIONAL ANIMATIONS ========== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

.mud-button-filled-primary:focus {
    animation: glow 0.5s ease-out;
}

/* ========== TEXT SELECTION STYLING ========== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* ========== FOCUS RING ENHANCEMENTS ========== */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

/* ========== BACKDROP FILTER SUPPORT ========== */
@supports (backdrop-filter: blur(10px)) {
    .mud-paper.login-wrapper {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
    }
}
