/* css/inputs.css */
/* Form input styles and input groups */

/* Input Styles */
input[type="password"],
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e91e63;
    border-radius: 30px;
    outline: none;
    font-size: 1em;
    transition: border-color 0.3s;
    position: relative;
}

input[type="password"]:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #ad1457;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Quill Flourish - decorative underline on focus */
input[type="password"]:focus::after,
input[type="text"]:focus::after,
input[type="email"]:focus::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #e91e63, #ad1457, #e91e63);
    animation: quillFlourish 0.5s ease-out forwards;
}

/* Input Group Styles */
.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group input {
    flex: 1;
    margin-right: 10px;
}

.input-group button {
    flex: 0 0 auto;
    width: auto;
    padding: 15px 30px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group input,
    .input-group button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Prevent iOS auto-zoom on input focus */
    input[type="password"],
    input[type="text"],
    input[type="email"] {
        font-size: 16px;
    }
    
    input:focus {
        scroll-margin-top: 100px;
    }
}

/* Group Input */
.group-input {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
    border-color: rgba(233, 30, 99, 0.6);
    background-color: rgba(255, 255, 255, 0.95);
}

.group-input:focus {
    border-color: #e91e63;
    background-color: #fff;
}

/* Group Preview */
.group-preview {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 0.85em;
    color: #fff;
    background-color: rgba(233, 30, 99, 0.8);
    border-radius: 10px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: letterSeal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Style for the purchased checkbox */
.purchased-checkbox {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    transform: scale(1.3);
    position: relative;
    flex-shrink: 0;
}

/* Icicle Melt effect when checkbox is checked */
.purchased-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(173, 216, 230, 0.8) 0%, rgba(135, 206, 250, 0.4) 100%);
    pointer-events: none;
    animation: icicleMelt 0.6s ease-out;
    border-radius: 2px;
}

/* Auth form container */
#auth-form {
    width: 100%;
}

/* Auth Toggle Link */
.auth-toggle {
    display: block;
    text-align: center;
    color: #e91e63;
    text-decoration: none;
    margin-top: 10px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.auth-toggle:hover {
    color: #ad1457;
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    display: block;
    text-align: center;
    color: #888;
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.85em;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: #e91e63;
    text-decoration: underline;
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4caf50;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 15px;
}

.success-message .lucide-sm,
.success-message .lucide-md {
    color: #4caf50;
}

/* Reset Password Success Container */
.reset-success-container {
    text-align: center;
    padding: 30px 20px;
    animation: successFadeIn 0.5s ease-out;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(129, 199, 132, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
}

.reset-success-icon .lucide {
    width: 40px;
    height: 40px;
    color: #4caf50;
}

.reset-success-title {
    font-family: 'Pacifico', cursive;
    font-size: 2em;
    color: #4caf50;
    margin-bottom: 10px;
}

.reset-success-message {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.reset-success-hint {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    color: #666;
    margin-bottom: 25px;
}

.reset-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.reset-login-button:hover {
    background: linear-gradient(135deg, #ad1457, #880e4f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.reset-login-button:active {
    transform: translateY(0);
}

.reset-login-button .lucide-sm {
    width: 18px;
    height: 18px;
}

/* Group Options Container */
#group-options {
    margin-bottom: 20px;
    padding: 0;
    background-color: transparent;
}

.group-option {
    margin-bottom: 10px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.group-option:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(233, 30, 99, 0.5);
    transform: translateX(3px);
}

.group-option:has(input[type="radio"]:checked) {
    background-color: rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.8);
    border-width: 3px;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
    animation: waxSeal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group-option input[type="radio"] {
    margin-right: 10px;
    width: auto;
    vertical-align: middle;
    cursor: pointer;
    transform: scale(1.2);
    min-width: 20px;
    min-height: 20px;
}

.group-option label {
    display: inline;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    vertical-align: middle;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .group-option input[type="radio"] {
        transform: scale(1.5);
    }
    
    .group-option {
        padding: 20px;
    }
}

/* Spoiler Mode Toggle */
.spoiler-warning-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(244, 67, 54, 0.1));
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
}

.spoiler-warning-icon {
    display: flex;
    align-items: center;
    color: #ff9800;
}

.spoiler-warning-icon svg {
    width: 20px;
    height: 20px;
}

.spoiler-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9800;
}

.spoiler-label {
    font-size: 0.95em;
    font-weight: 600;
    color: #ff9800;
    cursor: pointer;
    user-select: none;
}

.spoiler-warning-text {
    flex-basis: 100%;
    font-size: 0.8em;
    color: #f44336;
    font-weight: 500;
    margin-left: 28px;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .spoiler-warning-container {
        padding: 10px 12px;
    }
    
    .spoiler-label {
        font-size: 0.85em;
    }
    
    .spoiler-warning-text {
        font-size: 0.75em;
        margin-left: 0;
    }
}

