/* Modern Admin Login - Orange Red Theme */
:root {
    --primary-orange: #ff4500;
    --dark-orange: #cc0000;
    --light-orange: #ff6b35;
    --gradient-orange: linear-gradient(135deg, #ff4500 0%, #cc0000 100%);
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.mainbody {
    background-image: url("/img/index-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.mainbody::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.25) 0%, rgba(204, 0, 0, 0.25) 100%);
    z-index: 0;
}

.main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 12px rgba(255, 69, 0, 0.3)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(255, 69, 0, 0.3)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
    50% {
        filter: drop-shadow(0 4px 20px rgba(255, 69, 0, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    }
}

.boxouter {
    width: 100%;
    max-width: 500px;
}

.box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 250, 245, 0.85) 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(255, 69, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 69, 0, 0.02) 10px,
        rgba(255, 69, 0, 0.02) 20px
    );
    animation: movePattern 20s linear infinite;
    pointer-events: none;
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 69, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(204, 0, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login {
    position: relative;
    z-index: 1;
}

.login h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login label {
    display: block;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.login input::placeholder {
    color: #999;
}

.action-button {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.optionbutton {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.action-button a.optionbutton {
    background: white;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.action-button a.optionbutton:hover {
    background: var(--gradient-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.action-button button.optionbutton {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
    border: 2px solid transparent;
}

.action-button button.optionbutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.more {
    margin-top: 30px;
    padding: 25px;
    background: var(--gradient-orange);
    border-radius: 16px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.3);
}

.more h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.chat-text h2 {
    font-size: 1.1rem;
    margin: 5px 0;
}

.chat-icon img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.copyright {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mainbody {
        background-image: url("/img/index-background-phone.jpg");
        background-attachment: scroll;
    }

    .main {
        padding: 20px 15px;
    }

    .logo {
        width: 140px;
        margin-bottom: 20px;
    }

    .box {
        padding: 30px 20px;
    }

    .login h1 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .login input[type="text"],
    .login input[type="password"] {
        padding: 12px 16px;
        font-size: 15px;
    }

    .optionbutton {
        padding: 12px 16px;
        font-size: 15px;
    }

    .more {
        padding: 20px;
    }

    .more h2 {
        font-size: 1.1rem;
    }

    .chat-text h2 {
        font-size: 1rem;
    }

    .chat-icon img {
        width: 60px;
        height: 60px;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
    }

    .box {
        padding: 25px 15px;
    }

    .login h1 {
        font-size: 1.3rem;
    }

    .action-button {
        flex-direction: column;
        gap: 10px;
    }

    .more h2 {
        font-size: 1rem;
    }

    .chat {
        flex-direction: column;
        gap: 10px;
    }
}
