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

/* BODY */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================= */
/* HEADER (HOME PAGE TOP) */
/* ========================= */
.home-header {
    text-align: center;
    color: white;
    margin-top: 40px;
}

.home-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.home-header p {
    font-size: 15px;
    color: #d0d0d0;
}

/* ========================= */
/* HOME MAIN LAYOUT */
/* ========================= */
.home-main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px;
    gap: 300px; /* control the soacing*/
}

/* LEFT SIDE (BUTTONS) */
.home-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 260px;
}

/* RIGHT SIDE (DESCRIPTION) */
.home-right {
    max-width: 500px;
    color: white;
}

.home-right h3 {
    margin-bottom: 15px;
}

.home-right p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ========================= */
/* COMMON CONTAINER (LOGIN/REGISTER) */
/* ========================= */
.container {
    display: flex;
    flex: 1;
    padding: 40px;
    gap: 40px;
}

/* LOGIN SECTION */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================= */
/* FORM STYLES */
/* ========================= */

h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-top: 10px;
    color: #444;
}

input {
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.2s;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

/* BUTTON (FORM BUTTON) */
button {
    background: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: #0056b3;
}

/* ========================= */
/* HOME BUTTONS (WHITE STYLE) */
/* ========================= */
.btn {
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    background: white;
    color: #007bff;
    transition: 0.2s;
}

.btn:hover {
    background: #f1f1f1;
}

/* ========================= */
/* TEXT HELP */
/* ========================= */
.help-text {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

/* ========================= */
/* DESCRIPTION */
/* ========================= */
.description-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.description-card {
    color: white;
    max-width: 500px;
}

.description-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.description-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ========================= */
/* DISCLAIMER */
/* ========================= */
.disclaimer {
    margin-top:auto;
    background: rgba(0,0,0,0.6);
    color: #ddd;
    padding: 20px;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 768px) {

    .home-main {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .home-left {
        order: 2;
        width: 100%;
    }

    .home-right {
        order: 1;
    }

    .btn {
        width: 100%;
    }

    .container {
        flex-direction: column;
        padding: 20px;
    }

    .description-section {
        order: 1;
        text-align: center;
    }

    .login-section {
        order: 2;
    }

    .card {
        width: 100%;
    }
}

/* CAPTCHA BOX */
.captcha-box {
    margin-top: 15px;
    padding: 10px;
    background: #f5f7fa;
    border-radius: 6px;
}

/* EXAMPLES */
.captcha-example {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.captcha-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.captcha-row button {
    padding: 5px 8px;
    cursor: pointer;
}

/* MESSAGE TEXT */
.message-text {
    margin: 15px 0;
    color: #444;
    line-height: 1.5;
}


/* TOP NAV CONTAINER */
.top-nav {
    top: 20px;
    left: 20px;
}

/* HOME BUTTON  */
.top-nav a.home-btn {
    background: white;
    color: #007bff !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: inline-block;
}

.home-btn:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.home-btn:visited {
    color: #007bff;
}
