html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

/* Layout */
.container-activation {
    display: flex;
    height: 100vh;
}

/* LEFT PANEL */
.left {
    width: 45%;
    background: linear-gradient(to top right, #44077e, #01184b);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    position: relative;
}

.bg-image {
    width: 15%;
    max-width: 180px;
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translateY(-50%);
    opacity: 0.3;
    z-index: 1;
}

.text-container {
    z-index: 10;
    margin-left: 4rem;
}

.welcome-a {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.sys-name {
    font-size: 4rem;
    font-weight: 700;
}

/* RIGHT PANEL */
.right {
    flex: 1;
    background: #e7e5fb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.main-content-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* FORM */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #44077e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(68, 7, 126, 0.1);
}

.form-text {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.text-danger {
    color: #e74c3c !important;
}

.text-success {
    color: #27ae60 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #44077e, #6c2cc8);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:disabled {
    background: #cfcfcf;
    cursor: not-allowed;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 7, 126, 0.3);
}

/* TEXT STYLING */
.text-center {
    text-align: center;
}


/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .sys-name {
        font-size: 3rem;
    }
}

@media (max-width: 801px) {
    html,
    body {
        height: 100%;
        background: #e7e5fb; /* fallback background */
    }

    .container-activation {
        flex-direction: column;
        min-height: 100vh;
        background: #e7e5fb; /* ensures entire page uses same background */
    }

    .left {
        width: 100%;
        height: 20vh;
        justify-content: center;
        text-align: center;
    }

    .bg-image {
        display: none;
    }

    .text-container {
        margin: 0;
    }

    .welcome-a {
        font-size: 1.5rem;
    }

    .sys-name {
        font-size: 2.5rem;
    }

    .right {
        width: 100%;
        margin: 0;
        padding: 2rem 1.5rem;
    }

    .main-content-container {
        width: 100%;
        max-width: 100%;
        padding: 2rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .main-content-container {
        padding: 1.5rem;
    }

    .form-control {
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
    }

    .btn-primary {
        width: 100%;
        padding: 0.75rem;
    }
}
