/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== BODY BACKGROUND ===== */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== TOP TITLE ===== */
.toptitle {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toptitle h1 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== CONTAINER CARD ===== */
.container {
    background: #ffffff;
    margin-top: 60px;
    padding: 40px 35px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: fadeIn 0.6s ease-in-out;
}

.container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* ===== INPUT GROUP ===== */
.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s ease;
}

.input-group input:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 6px rgba(42,82,152,0.3);
}

/* ===== BUTTON ===== */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ===== SWITCH LINK ===== */
.switch-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.switch-link a {
    color: #2a5298;
    font-weight: 600;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        margin-top: 30px;
        padding: 30px 20px;
    }

    .toptitle h1 {
        font-size: 20px;
    }
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TABLET VIEW ===== */
@media (max-width: 1024px) {

    .container {
        max-width: 450px;
        margin-top: 50px;
        padding: 35px 30px;
    }

    .toptitle h1 {
        font-size: 22px;
    }

    button {
        font-size: 14px;
        padding: 11px;
    }
}
/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {

    body {
        padding: 0 15px;
    }

    .container {
        width: 100%;
        margin-top: 40px;
        padding: 30px 25px;
        border-radius: 10px;
    }

    .toptitle {
        padding: 15px 10px;
    }

    .toptitle h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    .container h2 {
        font-size: 20px;
    }

    .input-group input {
        padding: 11px 12px;
        font-size: 14px;
    }

    button {
        padding: 11px;
        font-size: 14px;
    }

    .switch-link {
        font-size: 13px;
    }
}
/* ===== SMALL MOBILE VIEW ===== */
@media (max-width: 480px) {

    .container {
        margin-top: 25px;
        padding: 25px 18px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .toptitle h1 {
        font-size: 18px;
    }

    .container h2 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .input-group input {
        padding: 10px;
        font-size: 13px;
    }

    button {
        padding: 10px;
        font-size: 13px;
    }
}
