*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    max-width: 100%;
    background: 
        url("data:image/svg+xml;utf8,<svg width='100' height='100' xmlns='http://www.w3.org/2000/svg'><circle cx='10' cy='10' r='1.2' fill='white' opacity='0.8'/><circle cx='80' cy='30' r='1.5' fill='white' opacity='0.7'/><circle cx='60' cy='80' r='1' fill='white' opacity='0.6'/><circle cx='30' cy='60' r='0.8' fill='white' opacity='0.5'/><circle cx='50' cy='40' r='1.1' fill='white' opacity='0.7'/></svg>") repeat,
        linear-gradient(135deg, #1a0036 0%, #3a006e 60%, #7b00ff 100%);
    overflow-x: hidden;
    position: relative;
    padding-top: 40px;
    overflow-x: hidden;
}
.hero-bg {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 0;
    overflow: hidden;
}
.hero-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.hero-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
    filter: blur(12px);
    pointer-events: none;
    z-index: 1;
}
.hero {
    width: 100%;
    padding: 3.5rem 0 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem 0;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(124, 58, 237, 0.18);
}
.hero p {
    color: #ede9fe;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(124, 58, 237, 0.12);
}
.hero-divider {
    width: 100%;
    height: 90px;
    background: transparent;
    position: relative;
    z-index: 2;
    margin-bottom: -30px;
}
form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.login-btn {
    padding: 1rem 1.5rem;
    background: #7b00ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    transition: background 0.2s, transform 0.1s, width 0.3s, opacity 0.2s;
    min-width: 120px;
}
.login-btn:hover {
    background: #5200aa;
    transform: translateY(-2px) scale(1.03);
}
.login-btn:disabled,
.login-btn[disabled] {
    background: #9e9e9e;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.95;
    pointer-events: none;
    transform: none;
}
.result {
    min-height: 2.5rem;
    background: rgba(236, 254, 255, 0.7);
    border-radius: 10px;
    padding: 1rem;
    color: #7c3aed;
    font-size: 1.05rem;
    text-align: center;
    word-break: break-all;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.07);
    margin-bottom: 1rem;
    display: none;
    word-break: break-word;
    overflow-wrap: break-word;
}
.result.active {
    display: block;
    animation: fadeIn 0.5s;
    position: relative;
    z-index: 100;
}
.error-message {
    color: #fff;
    background: #e11d48;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(225,29,72,0.08);
    word-break: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tm-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.829);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
}
.navbar-brand img {
    height: 40px;
    vertical-align: middle;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links li {
    display: flex;
    align-items: center;
}
.tm-nav-link {
    color: #7b00ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.tm-nav-link:hover,
.tm-nav-link.current {
    color: #ffffff;
    background: #7b00ff;
}
.terms-and-conditions-label {
    color: #ffffff;
    font-weight: 900;
    padding-left: 10px;
    font-size: 0.6rem;
}
.message-row {
    text-align: center;
    color: #6d28d9;
    margin-top: 0.5rem;
    font-size: 1em;
    word-break: normal;
    overflow-wrap: anywhere;
}
.error-message {
    color: #fff;
    background: #e11d48;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(225,29,72,0.08);
    word-break: normal;
    overflow-wrap: anywhere;
}
.login-section form {
    width: 70%;
    max-width: 500px;
    margin: 0 auto;
}
.login-input {
    padding: 1rem 1.5rem;
    background: rgba(226, 232, 240, 0.7);
    color: #4b006e;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    outline: none;
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 10px;
    border: none;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.login-input:focus{
    background: #fff;
    box-shadow: 0 0 0 2px #a78bfa;
}
.login-section {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border-color: #9900ff;
    border-width: 5px;
    border-style: solid;
    padding: 2rem 2rem 0.5rem 2rem;
    margin-top: 0;
    box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.10);
    transition: padding-bottom 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    padding-bottom: 1.5rem;
}
.login-info-message {
    color: #312e81;
    background: #c7d2fe;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    word-break: normal;
    overflow-wrap: anywhere;
}
.password-input-container {
    position: relative;
    width: 100%;
}
#toggle-password-visibility {
    z-index: 10;
}