/* Base Styles */
.container {
    width: 90%;
    max-width: 600px;
    margin: 15vh auto 5vh;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(var(--secbackgroundcolor), 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: border_anim 10s ease infinite;
    position: relative;
}

.container h1 {
    color: rgb(var(--primarycolor));
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inputbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inputbox label {
    font-size: 1rem;
    color: rgb(var(--htext_color));
}

.inputbox input,
.inputbox textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(var(--secondarycolor), 0.5);
    background-color: rgba(var(--backgroundcolor), 0.3);
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: rgb(var(--htext_color));
}

.inputbox textarea {
    height: 120px;
    resize: vertical;
}

.inputbox input:focus,
.inputbox textarea:focus {
    border-color: rgb(var(--primarycolor));
    box-shadow: 0 0 0 2px rgba(var(--primarycolor), 0.2);
}

.inputbox button {
    background-color: rgb(var(--primarycolor));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 1rem auto 0;
}

.inputbox button:hover {
    background-color: rgba(var(--primarycolor), 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primarycolor), 0.3);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid red;
    color: rgb(255, 100, 100);
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border-left: 4px solid green;
    color: rgb(100, 255, 100);
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Border Animation */
@keyframes border_anim {
    0% {
        border-radius: 40% 50% 50% 30%;
    }
    25% {
        border-radius: 50% 60% 50% 70%;
    }
    50% {
        border-radius: 60% 50% 60% 50%;
    }
    75% {
        border-radius: 90% 70% 90% 70%;
    }
    100% {
        border-radius: 40% 50% 50% 30%;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        margin: 10vh auto 5vh;
        padding: 1.5rem;
    }
    
    .inputbox button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 1.2rem;
    }
    
    .container h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .inputbox input,
    .inputbox textarea {
        padding: 0.7rem;
    }
}