* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'NotoSansSC';
    src: url('fonts/NotoSansSC-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'NotoSansJP';
    src: url('fonts/NotoSansJP-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Arial', 'NotoSansJP', 'NotoSansSC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
}

.logo {
    display: block;
    margin: 0 auto 30px;
    max-width: 200px;
    height: auto;
    /* max-height: 15vh; */
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

.form-description {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 12px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.form-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.form-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.form-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.password-requirements {
    font-size: 9px;
    color: #666;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
    padding: 0 0px;
}

.coupon-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.coupon-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.coupon-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

button.disabled,
button:disabled,
.coupon-button.disabled,
.coupon-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.message-box {
    background-color: white;
    color: black;
    border: 1px solid white;
    margin-top: 10px;
    padding: 4px;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    width: 100%;
    height: auto;
    display: block; /* Changed to block to always occupy space */
}

.message-box.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-height: 800px) {
    .login-container {
        padding: 20px;
    }
    .logo {
        width: 100px;
    }
    h2 {
        font-size: 18px;
    }
    form {
        gap: 10px;
    }
    .input {
        padding: 10px;
        font-size: 14px;
    }
    button {
        padding: 10px;
        font-size: 14px;
    }
    .coupon-button {
        padding: 10px;
        font-size: 12px;
    }
}

/* @media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 24px;
    }
} */

/* @media (aspect-ratio: 4/3) {
  .container {
    width: 70vw;
  }
} */

/* @media (aspect-ratio: 16/10) {
  .login-container {
    max-height: 90vh;
    overflow-y: auto;
  }
} */

/* @media (min-aspect-ratio: 1.3/1) and (max-aspect-ratio: 1.6/1) {
  .container {
    width: 75vw;
  }
} */