* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, 'Poppins', sans-serif;
    background: radial-gradient(circle at 20% 30%, #1a0000, #000000);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 40%, rgba(220, 20, 60, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    border-radius: 2rem;
    padding: 2rem 2rem 2.5rem 2rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(220, 20, 60, 0.3), 0 0 0 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.2s;
}

.login-container:hover {
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(220, 30, 70, 0.6);
    transform: translateY(-3px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    background-image: url("../image/LegacyTradeWhiteLogo.svg");
    width: 205px;
    height: 50px;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    width: 36px;
    height: 36px;
    color: white;
    stroke-width: 1.7;
    fill: none;
}

.login-title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    color: #cfcfcf;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 400;
    border-bottom: 1px dashed rgba(220, 20, 60, 0.5);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    margin-left: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-label i{
    width: 16px;
    height: 16px;
    color: #dc143c;
    stroke-width: 1.8;
    fill: none;
}

.input-field {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #0f0f0f;
    border: 1.5px solid #2a2a2a;
    border-radius: 1.2rem;
    font-size: 1rem;
    color: white;
    transition: all 0.2s ease;
    outline: none;
    font-weight: 500;
}

.input-field:focus {
    border-color: #dc143c;
    background: #000000;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.3);
}

.input-field::placeholder {
    color: #5a5a5a;
    font-weight: 400;
    font-size: 0.9rem;
}

.form-extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.checkbox-custom {
    accent-color: #b91c1c;
    width: 18px;
    height: 18px;
    cursor: pointer;
    filter: drop-shadow(0 0 2px #b91c1c);
}

.checkbox-label {
    color: #dddddd;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.forgot-link {
    color: #dc143c;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px dotted rgba(220, 20, 60, 0.5);
}

.forgot-link:hover {
    color: #ff4d6d;
    border-bottom-color: #ff4d6d;
}

.login-button {
    width: 100%;
    background: linear-gradient(95deg, #b91c1c, #dc143c);
    border: none;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 12px rgba(185, 28, 28, 0.4);
    letter-spacing: 0.5px;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button:hover {
    background: linear-gradient(95deg, #9e1616, #c01136);
    transform: scale(0.98);
    box-shadow: 0 8px 18px rgba(220, 20, 60, 0.5);
}

.login-button:active {
    transform: scale(0.96);
}

.signup-prompt {
    text-align: center;
    font-size: 0.9rem;
    color: #bcbcbc;
    border-top: 1px solid rgba(220, 20, 60, 0.25);
    padding-top: 1.5rem;
    margin-top: 0.25rem;
}

.signup-link {
    color: #dc143c;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.4rem;
    transition: all 0.2s;
}

.signup-link:hover {
    color: #ff7070;
    text-decoration: underline;
}

.message-area {
    margin-bottom: 1.2rem;
    min-height: 52px;
}

.error-message {
    background: rgba(220, 20, 60, 0.15);
    border-left: 4px solid #dc143c;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    color: #ffb3b3;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.success-message {
    background: rgba(0, 200, 100, 0.12);
    border-left: 4px solid #2ecc71;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    color: #b0ffcf;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-svg-small {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

@media (max-width: 480px) {
    .login-container {
    padding: 1.5rem;
    }
    .login-title {
    font-size: 1.6rem;
    }
}