/* Custom styles for Django Allauth form fields */

/* Input field styling */
input[type="email"],
input[type="password"],
input[type="text"],
input[name="email"],
input[name="login"],
input[name="password"],
input[name="password1"],
input[name="password2"],
input[name="first_name"],
input[name="last_name"] {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background-color: rgb(31 41 55) !important; /* bg-dark-200 equivalent */
    border: 1px solid rgba(34, 197, 94, 0.3) !important; /* border-cyan-400/30 */
    border-radius: 0.5rem !important;
    color: white !important;
    font-family: 'Courier New', monospace !important;
    transition: all 0.3s ease !important;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[name="email"]:focus,
input[name="login"]:focus,
input[name="password"]:focus,
input[name="password1"]:focus,
input[name="password2"]:focus,
input[name="first_name"]:focus,
input[name="last_name"]:focus {
    outline: none !important;
    ring: 2px !important;
    ring-color: rgb(34 197 94) !important; /* ring-cyan-400 */
    border-color: rgb(34 197 94) !important; /* border-cyan-400 */
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[name="email"]::placeholder,
input[name="login"]::placeholder,
input[name="password"]::placeholder,
input[name="password1"]::placeholder,
input[name="password2"]::placeholder,
input[name="first_name"]::placeholder,
input[name="last_name"]::placeholder {
    color: rgb(156 163 175) !important; /* placeholder-gray-400 */
}

/* Password field with toggle button spacing */
.relative input[type="password"],
.relative input[name="password"],
.relative input[name="password1"],
.relative input[name="password2"] {
    padding-right: 3rem !important; /* pr-12 */
}

/* Checkbox styling */
input[type="checkbox"],
input[name="remember"] {
    height: 1rem !important;
    width: 1rem !important;
    color: rgb(34 197 94) !important; /* text-cyan-400 */
    background-color: rgb(31 41 55) !important; /* bg-dark-200 */
    border: 1px solid rgb(75 85 99) !important; /* border-gray-600 */
    border-radius: 0.25rem !important;
}

input[type="checkbox"]:focus,
input[name="remember"]:focus {
    ring: 2px !important;
    ring-color: rgb(34 197 94) !important; /* ring-cyan-400 */
}

/* Form validation error styling */
.errorlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.75rem 0 0 0 !important;
}

.errorlist li {
    color: rgb(248 113 113) !important; /* text-red-400 */
    font-size: 0.875rem !important; /* text-sm */
    font-family: 'Courier New', monospace !important;
    margin-bottom: 0.5rem !important;
}

.errorlist li:before {
    content: "⚠ ";
    margin-right: 0.25rem;
}

/* Non-field errors */
.nonfield {
    background-color: rgba(127, 29, 29, 0.2) !important; /* bg-red-900/20 */
    border: 1px solid rgba(239, 68, 68, 0.3) !important; /* border-red-500/30 */
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.nonfield ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nonfield li {
    color: rgb(248 113 113) !important; /* text-red-400 */
    font-family: 'Courier New', monospace !important;
}
