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

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

body.index-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(10, 10, 30, 0.75), rgba(10, 10, 30, 0.75)),
        url("../img/background.jpg");
    background-size: cover;
    background-position: center;
}

body.result-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(40, 30, 90, 0.45),rgba(20, 15, 50, 0.55)),
        url("../img/background2.png");
    background-size: cover;
    background-position: center;
}

.container,
.result-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 3rem;
    border-radius: 18px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.25);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.container:hover,
.result-container:hover {
    box-shadow:
        0 0 25px rgba(160, 120, 255, 0.45),
        0 0 60px rgba(120, 80, 255, 0.35);
    transform: translateY(-4px);
}

h1 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 14px rgba(0,0,0,0.7);
}

h2 {
    font-size: 2rem;
    margin-top: 1rem;
    color: #e6dcff;
}

label {
    display: block;
    text-align: left;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

input {
    width: 100%;
    padding: 12px;
    margin-top: 0.3rem;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.95rem;
}

button {
    margin-top: 2rem;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #9f7bff, #5a3bff);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(150, 110, 255, 0.7);
}

.zodiac-background {
    width: 100%;
    height: 190px;
    margin: 1.6rem 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.25);
}
