body{
    background-image: url("/static/signup/IMG_6184.JPG");
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    margin: 0 auto;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    font-size: 18px;
}

.rules {
    text-align: left;
    color: white;
    font-size: 13px;
    margin-top: 0;      /* Start with no extra margin */
    max-height: 0;      /* Hide initially */
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.rules.visible {
    max-height: 500px; /* big enough to show all li items */
    margin-top: 10px;  /* spacing below password field when visible */
}

.rules li.valid {
    color: #00ff99;
    font-weight: bold;
}
.rules li.invalid {
    color: #ff6b6b;
}

.match-message {
    font-size: 13px;
    text-align: left;
    margin-bottom: 30px;
    margin-top: 0;      /* Start with no extra margin */
    max-height: 0; 
    height: 18px;
    color: white;
    transition: 0.3s ease;
}
.match-message.success {
    color: #00ff99;
    font-weight: bold;
}
.match-message.error {
    color: #ff6b6b;
    font-weight: bold;
}


h2 {
    font-size: 26px;
    font-weight: bold;
    color: white;
    margin: 0 0 10px 0;
}

p {
    font-size: 14px;
    margin-bottom: 10px;
    color: white;
}

p a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: white;
    border-radius: 25px;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    margin: 15px 0;
    text-align: left;
    color: white;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox label {
    line-height: 1.4;
}

input[type="checkbox"]:focus {
    outline: max(2px, 0.15em) solid white;
    outline-offset: max(2px, 0.15em);
}

.btn {
    background: white;
    color: black;
    border: none;
    padding: 12px;
    cursor: pointer;
    width: 100%;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn:hover {
    background: #000000;
    color: white;
}

.social-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 10px 0;
    gap: 10px;
}

.social-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

label a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.or {
    margin: 20px 0 10px 0;
    color: white;
}

.google { 
    background: white; 
    color: black; 
    transition: all 0.3s;
}

.google:hover {
    background-color: #000000; 
    color: white;
}


.mainh {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.mainh h1 {
    font-size: 50px;
    font-weight: bolder;
    margin-bottom: 10px;
}

.mainh h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 600px;
}

.spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #00bed3;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.8);
    animation: fadeOut 0.5s linear forwards;
    z-index: 200;
}

/* Animation for spark disappearing */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Flash message styling */
[style*="color: red"] {
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .mainh h1 {
        font-size: 40px;
    }
    
    .mainh h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .container {
        padding: 25px 20px;
        max-width: 400px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    input {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .mainh h1 {
        font-size: 32px;
    }
    
    .mainh h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    h2 {
        font-size: 22px;
    }
    
    input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .checkbox {
        font-size: 11px;
    }
    
    .social-buttons button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .mainh h1 {
        font-size: 28px;
    }
    
    .mainh h3 {
        font-size: 14px;
    }
    
    .container {
        padding: 15px 10px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .checkbox {
        font-size: 10px;
    }
}

/* Ensure proper focus states for accessibility */
input:focus {
    border-color: #00bed3;
    box-shadow: 0 0 5px rgba(0, 190, 211, 0.5);
}

button:focus {
    outline: 2px solid #00bed3;
    outline-offset: 2px;
}