/* Colors palette */
:root {
    --battleship-gray: #7a817a;
    --smoky-black: #130f0c;
    --rust: #b9381a;
    --platinum: #dee5e2;
    --isabelline: #f2ebe6;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Make sure body and html take full height */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('/tokyo-paradise/assets/3516906.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.login-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo i {
    font-size: 40px;
    color: var(--rust);
}

h1 {
    text-align: center;
    color: var(--smoky-black);
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: var(--battleship-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--battleship-gray);
    pointer-events: none;
}

.input-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.input-box input:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(185, 56, 26, 0.1);
}

.error {
    color: var(--rust);
    font-size: 14px;
    margin: 10px 0;
    min-height: 20px;
}

button {
    width: 100%;
    padding: 15px;
    background: var(--rust);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

button:hover {
    background: #a33017;
}

button span {
    display: inline-block;
    transition: opacity 0.3s;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

button.loading span {
    opacity: 0;
}

button.loading .loader {
    display: block;
}

button.success {
    background: #28a745;
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 15px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .logo i {
        font-size: 32px;
    }

    h1 {
        font-size: 22px;
    }

    .input-box input {
        padding: 12px 12px 12px 40px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    button {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 15px;
    }

    .logo i {
        font-size: 28px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 13px;
    }
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-paid {
    background-color: #e6ffe6;
    color: #008000;
    border: 1px solid #008000;
}

.status-deposit {
    background-color: #fff3e6;
    color: #ff8c00;
    border: 1px solid #ff8c00;
}