/* ================================================
   FORMS.CSS
   Reusable form components with themeable styling
   ================================================ */

/* Password Lock Container */
.password-container {
    width: 90%;
    max-width: 400px;
    margin: 20vh auto 0;
    padding: 2rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 0;
}

.password-container h1 {
    color: var(--theme-primary);
    text-shadow: 2px 2px 8px rgba(var(--theme-primary-rgb), 0.6);
    margin-bottom: 1.5rem;
}

.password-container label {
    color: var(--theme-text);
}

.password-container small a {
    color: var(--theme-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.password-container small a:hover {
    color: var(--theme-primary);
}

/* Input Fields */
.form-input,
input[type="text"].form-input,
input[type="password"].form-input,
input[type="email"].form-input,
textarea.form-input,
select.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(var(--theme-dark-rgb), 0.8);
    color: var(--theme-primary);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.4);
    border-radius: 0;
    font-family: Paragraph, 'Segoe UI', sans-serif;
    font-size: 16px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input:focus,
input[type="text"].form-input:focus,
input[type="password"].form-input:focus,
input[type="email"].form-input:focus,
textarea.form-input:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.4);
    background-color: rgba(var(--theme-dark-rgb), 0.95);
}

/* Buttons */
.form-button,
.btn-submit,
input[type="submit"].form-button {
    background-color: rgba(var(--theme-primary-rgb), 0.15);
    color: var(--theme-primary);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.5);
    padding: 0.75rem 1.5rem;
    font-family: Paragraph, 'Segoe UI', sans-serif;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-button::before,
.btn-submit::before,
input[type="submit"].form-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(var(--theme-primary-rgb), 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease;
    z-index: -1;
}

.form-button:hover,
.btn-submit:hover,
input[type="submit"].form-button:hover {
    border-color: var(--theme-primary);
    text-shadow: 0 0 8px rgba(var(--theme-primary-rgb), 0.8);
    box-shadow: 0 0 15px rgba(var(--theme-primary-rgb), 0.3);
}

.form-button:hover::before,
.btn-submit:hover::before,
input[type="submit"].form-button:hover::before {
    width: 100%;
}

/* Secondary Button */
.btn-secondary,
.form-button-secondary {
    background-color: rgba(var(--theme-secondary-rgb), 0.15);
    color: var(--theme-secondary);
    border: 1px solid rgba(var(--theme-secondary-rgb), 0.5);
    padding: 0.75rem 1.5rem;
    font-family: Paragraph, 'Segoe UI', sans-serif;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before,
.form-button-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(var(--theme-secondary-rgb), 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover,
.form-button-secondary:hover {
    border-color: var(--theme-secondary);
    text-shadow: 0 0 8px rgba(var(--theme-secondary-rgb), 0.8);
    box-shadow: 0 0 15px rgba(var(--theme-secondary-rgb), 0.3);
}

.btn-secondary:hover::before,
.form-button-secondary:hover::before {
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sakura-text);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .password-container {
        width: 95%;
        padding: 1.5rem;
        margin-top: 15vh;
    }
}

