/* proQR Theme Styles (Updated) */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; /* Light gray background match */
    color: #1e293b; /* Slate 800 */
    padding: 1rem;
    height: 100vh;
    margin: 0;
    background: #f8f9fa; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 400px;
    width: 100%;
    margin: 2em auto;
    padding: 40px;
    border-radius: 16px;
    background-color: #ffffff; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
}

/* Typography & Utilities */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

h2.text-center {
    color: #1e293b; 
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    color: #374151;
}

.form-control:focus {
    outline: none;
    border-color: #16a34a; /* Brand Green */
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
}

/* Login Button / Primary (Gray #545b62) */
.btn-primary {
    background-color: #545b62; 
    color: white;
    border-color: #545b62;
}

.btn-primary:hover {
    background-color: #343a40;
    border-color: #343a40;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Signup Button / Danger remapped (Green #16a34a) */
.btn-danger {
    background-color: #16a34a; /* Brand Green */
    color: white;
    border-color: #16a34a;
}

.btn-danger:hover {
    background-color: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Secondary Button (often used in toggles) */
.btn-secondary {
    background-color: transparent;
    color: #64748b;
    border: 1px solid transparent;
}

/* Form Visibility */
.form-content {
    display: none;
}

#login-form {
    display: block;
}

hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 0;
    border-top: 1px solid #e5e7eb;
    display: block;
}

p, p1 {
    color: #64748b; 
    text-align: center;
    margin-top: 1rem;
}

p1 {
    display: flex;
    justify-content: center;
    padding-bottom: .5rem;
}

/* Toggle Buttons (Login/Signup Switcher) */
.toggle-buttons {
    display: flex;
    justify-content: center;
    background-color: #f3f4f6;
    padding: 4px;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.toggle-buttons .btn {
    flex: 1;
    margin: 0;
    border-radius: 9999px;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    width: auto; /* Override 100% width */
}

/* Specific Active Colors for Toggles */
#login-toggle.active {
    background-color: #545b62; /* Gray to match Login Submit */
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#signup-toggle.active {
    background-color: #16a34a; /* Green to match Signup Submit */
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-buttons .btn:not(.active):hover {
    color: #374151;
    background-color: #e5e7eb;
}

.error-message {
    color: #dc2626; 
    margin-top: 10px;
    font-size: 0.875rem;
    text-align: center;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px);
    color: #1e293b;
    font-size: 1.1rem;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

p#modal-message {
    color: #1e293b;
    margin-bottom: 20px;
}

.modal button {
    padding: 10px 24px;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.modal button:hover {
    background-color: #15803d;
}

/* Links */
a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #15803d;
    text-decoration: underline;
}

a.shop {
    background: #16a34a; 
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin: 2em auto;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

a.shop:hover {
    background: #15803d;
    text-decoration: none;
    transform: translateY(-1px);
}

a.xvoox {
    color: #64748b;
}

/* Custom Select (Currency) */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}



.custom-option {
    position: relative;
    display: block;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    cursor: pointer;
    background-color: #f3f4f6;
    color: #16a34a;
}

.custom-option.selected {
    color: #ffffff;
    background-color: #16a34a;
}