/* ==================== Edvin's 3D Tech Login (No Roots) ==================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ????:????(#2c3e50)?????,???? Logo ?? */
    background: radial-gradient(circle at center, #2c3e50 0%, #0f172a 60%, #020617 100%);
    perspective: 1200px;
}

/* 3D ???? */
.login-container {
    position: relative;
    width: 440px;
    padding: 60px 45px;
    /* ????:??????,???? */
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    /* ????? */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* ???? */
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(220, 20, 60, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.login-container:hover {
    transform: translateY(-12px) rotateX(4deg);
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 
        0 45px 65px -20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(220, 20, 60, 0.3);
}

/* Logo ??:??????????,???? Logo ?????? */
.logo-area {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-area::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.company-logo {
    width: 100%;
    height: 100%;
    background: url("../asset/logo.png") no-repeat center center;
    background-size: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* ???? */
.login-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.login-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 40px;
    text-align: center;
}

/* ????? */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444; /* Ruby Red */
    font-size: 18px;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #f8fafc;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-group input:focus {
    border-color: #ef4444;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2), inset 0 2px 4px rgba(0,0,0,0.4);
}

.input-group input:focus + i {
    color: #ffffff;
    filter: drop-shadow(0 0 8px #ef4444);
}

/* 3D ?? */
.login-button {
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 10px;
    border: none;
    border-radius: 20px;
    /* ???:?????? */
    background: linear-gradient(135deg, #991b1b 0%, #dc143c 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(220, 20, 60, 0.5);
}

.login-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.login-button:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px -5px rgba(220, 20, 60, 0.6);
}

.login-button:hover::after {
    left: 100%;
}

/* ????? */
.side-line-left, .side-line-right {
    position: absolute;
    top: 20%;
    height: 60%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(220, 20, 60, 0.5), transparent);
}
.side-line-left { left: 15px; }
.side-line-right { right: 15px; }

/* ???? */
.footer-links {
    margin-top: 30px;
    text-align: center;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ef4444;
}

/* ==================== ??????? (Mobile & Tablet) ==================== */

/* ---------- ??????? (???? 768px) ---------- */
@media screen and (max-width: 768px) {
    
    /* 1. ?????? */
    .login-container {
        width: 85%; /* ?????? */
        padding: 40px 30px; /* ????? */
        transform: none !important; /* ??????? 3D ??,?????? */
    }

    .login-title {
        font-size: 24px; /* ???? */
    }

    /* 2. ??? (Popup) ?? */
    .popupS3 .mainS3 {
        width: 95%;
        max-height: 95vh;
    }

    .popupS3 .contentS3 {
        padding: 20px; /* ?????,????????? */
    }

    /* 3. ????:? 3 ??? 2 ? */
    .gridS1 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* ?????? 3 ?????? 2 ? */
    .groupS1.full-width3 {
        grid-column: 1 / span 2 !important;
    }
}

/* ---------- ?????? (???? 480px) ---------- */
@media screen and (max-width: 480px) {
    
    /* 1. ???? */
    .login-container {
        width: 92%;
        padding: 30px 20px;
        border-radius: 25px; /* ?????? */
    }

    .company-logo {
        width: 90px;
        height: 90px;
    }

    .login-button {
        height: 50px;
        font-size: 15px;
    }

    /* 2. ???????? */
    .popupS3 .mainS3 {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0; /* ?????????? */
    }

    /* 3. ????:?????????? */
    .gridS1 {
        grid-template-columns: 1fr !important; /* ???? */
    }

    .groupS1.full-width3, .groupS1 {
        grid-column: 1 / span 1 !important;
    }

    /* ?????????????? */
    .popSubmit, .popDelete, .popCancel {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* ???????? */
    .popupS3 .close {
        top: 10px;
        right: 10px;
    }
}