* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

/* Stack sections vertically */
.main-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.left-section {
    margin-bottom: 20px;
    background: rgba(90, 45, 130, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.logo {
    width: 250px;   /* smaller than desktop version */
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
    transform: translateX(0); /* centered */
}.tagline { font-size: 1rem; margin: 8px 0; }

.right-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 320px;
    padding: 25px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(90, 45, 130, 0.15);
}
.login-box .button {
    display: block;
    background: #5a2d82;
    color: #fff;
    font-size: 1em;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-decoration: none;
}
.login-box a:nth-child(2) { background: #42b72a; }

/* ---------- Modal Styles (shared for all devices) ---------- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    color: #5a2d82;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to   {opacity: 1; transform: scale(1);}
}

