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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.main-content h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 100px;
}

/* =========================
   REQUIRED NOTE
========================= */
.required-note {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* =========================
   SUCCESS MESSAGE
========================= */
.success-msg {
    background: #d4edda;
    color: #155724;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    margin-bottom: 24px;
    text-align: center;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    width: 100%;
    max-width: 500px;
}

/* =========================
   FORM CONTAINER
========================= */
.main-content form {
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
}

/* =========================
   FORM GROUPS
========================= */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #adb5bd;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input:hover:not(:focus) {
    border-color: #c5d0e0;
}

/* =========================
   SUBMIT BUTTON
========================= */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(42, 82, 152, 0.3);
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(42, 82, 152, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(42, 82, 152, 0.3);
}

/* =========================
   LOGIN LINK (Inside Form)
========================= */
.login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e1e8ed;
    color: #2c3e50;
    font-size: 15px;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 768px) {
    .main-content {
        padding: 30px 16px;
    }

    .main-content h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .required-note {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .success-msg {
        font-size: 13px;
        padding: 12px 16px;
    }

    .main-content form {
        padding: 40px 32px;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 13px 15px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 15px;
    }

    .login-link {
        font-size: 14px;
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .main-content {
        padding: 20px 12px;
    }

    .main-content h1 {
        font-size: 28px;
        letter-spacing: 1.5px;
    }

    .required-note {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .success-msg {
        font-size: 12px;
        padding: 12px 14px;
        margin-bottom: 20px;
    }

    .main-content form {
        padding: 36px 24px;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 14px;
        letter-spacing: 0.8px;
    }

    .login-link {
        font-size: 13px;
        margin-top: 18px;
        padding-top: 18px;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .main-content h1 {
        font-size: 26px;
    }

    .main-content form {
        padding: 32px 20px;
    }

    .form-group input {
        padding: 11px 13px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 13px;
        font-size: 13px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding: 20px;
    }

    .main-content h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .required-note {
        margin-bottom: 16px;
    }

    .main-content form {
        padding: 32px 28px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .login-link {
        margin-top: 16px;
        padding-top: 16px;
    }
}