.login-container {
    height: max(75vh, 30em);

    padding-top: var(--padding-top-header);
}


/* Profile Page */

/* .content-users {
    padding-top: var(--padding-top-header);
} */

.profile-div {
    padding: 0.5em;
    width: min(600px, 95%);
    margin: 1.25em auto;

    display: flex;
    flex-direction: column;
    gap: 1em;
}

.profile-div .page-title {
    margin: 0;
}

.profile-div .data-div {
    display: grid;
    grid-template-columns: 100%;
    gap: 1em;
}

.profile-div .data-div .data {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-div .data-div .data p,
.profile-div .data-div .data h3 {
    margin: 0;
}





@media only screen and (min-width: 100px) and (max-width: 325px) {

    

}



@media only screen and (min-width: 370px) {

    .profile-div .data-div {
        grid-template-columns: 50% 50%;
    }
    
}



@media only screen and (min-width: 800px) {

    
    
}



/* ALLAUTH */


.account-content {
    padding: 1em;
}

.allauth-menu {
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e6eef6;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    box-sizing: border-box;

    width: 100%;
}

/* Heading (the <strong>Menu:) */
.allauth-menu > strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2563eb; /* accent */
}

/* List */
.allauth-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Links */
.allauth-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(180deg, rgba(0,0,0,0.01), transparent);
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    font-size: 0.95rem;
}

/* Small chevron */
.allauth-menu a::after {
    content: "›";
    opacity: 0.45;
    margin-left: 8px;
    transition: transform 180ms ease, opacity 180ms ease;
}

/* Hover / focus */
.allauth-menu a:hover,
.allauth-menu a:focus {
    transform: translateX(4px);
    background-color: rgba(37,99,235,0.06);
    box-shadow: 0 4px 12px rgba(16,24,40,0.04);
    color: #2563eb;
}

.allauth-menu a:hover::after,
.allauth-menu a:focus::after {
    transform: translateX(6px);
    opacity: 1;
}

/* Keyboard focus visible for accessibility */
.allauth-menu a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
    border-color: rgba(37,99,235,0.18);
}

/* Active/current link */
.allauth-menu a[aria-current="page"],
.allauth-menu a.active {
    color: #2563eb;
    font-weight: 600;
    border-color: rgba(37,99,235,0.12);
}

/* Muted helper text (optional) */
.allauth-menu .muted {
    display: block;
    font-size: 0.82rem;
    color: #475569;
}

/* Responsive: tidy up on very small screens */
@media (max-width: 420px) {
    .allauth-menu {
        margin: 8px;
        width: calc(100% - 16px);
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .allauth-menu a {
        transition: none;
        transform: none;
    }
    .allauth-menu a::after {
        transition: none;
    }
}


/* account-login.css
   Drop into your static files and include in the page:
   <link rel="stylesheet" href="{% static 'css/account-login.css' %}">
*/

/* Container */
.login,
.social-login,
.logout,
.allauth-outer {
    max-width: 480px;
    margin: 48px auto;
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 24, 33, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.allauth-outer form {
    margin: 1em 0;
}

.allauth-outer h1 {
    margin-top: 0;
}

.allauth-outer input[type=text],
.allauth-outer input[type=password],
.allauth-outer input[type=email] {
	box-sizing: border-box;
	font-family: "Nunito Sans";
	background: rgb(var(--form-input-bg));
	outline: 0.1em solid rgb(var(--form-input-border));
	border: none;
	color: rgb(var(--text-color));
	border-radius: 0.5em;
	font-size: 1.1em;
	padding: 0.7em 0.8em;
    margin-top: 0.1em;

	width: 100%;
}

.allauth-outer input[type=text]:focus,
.allauth-outer input[type=password]:focus,
.allauth-outer input[type=email]:focus {
	outline-width: 0;
	outline: 0.1em solid rgb(var(--primary-color));

	transition: outline 0.3s ease-in-out;
}

.allauth-outer input[type=text]:focus::placeholder,
.allauth-outer input[type=password]:focus::placeholder,
.allauth-outer input[type=email]:focus::placeholder {
	color: rgb(var(--primary-color));
}

.allauth-outer input[type=text]::placeholder,
.allauth-outer input[type=password]::placeholder,
.allauth-outer input[type=email]::placeholder {
	color: rgb(var(--text-color));
	opacity: 0.4;
}

/* Headline & text */
.login h1, .login .element.h1 {
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 700;
    color: #0f172a;
}

.login p, .login .element.p, .login .element.blocktranslate {
    color: #475569;
    font-size: 14px;
    margin: 0;
}

/* Form layout */
.login form, .login .element.form {
    display: grid;
    gap: 14px;
}

.login .element.fields,
.login .field, 
.login input, 
.login select, 
.login textarea {
    width: 100%;
}

/* Inputs */
.login input[type="text"],
.login input[type="email"],
.login input[type="password"],
.login textarea,
.login select {
    padding: 12px 14px;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus,
.login textarea:focus,
.login select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 6px 18px rgba(99,102,241,0.08);
    transform: translateY(-1px);
}

/* Submit / primary buttons */
.allauth-outer button[type="submit"],
.login .element.button,
.login .btn,
.login .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(67,56,202,0.16);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.login button[type="submit"]:hover,
.login .element.button:hover,
.login .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.login button[type="submit"]:active,
.login .element.button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(67,56,202,0.14);
}

.login #id_remember {
    width: 16px;
}

/* Secondary / outline buttons (used by "sign in with passkey" or "send code") */
.login .element.button[tags*="outline"],
.login .button--outline,
.login .btn-outline,
.login button.outline {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e6e9ef;
    box-shadow: none;
}

#passkey_login {
    display: inline-flex;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Divider / HR */
.login .element.hr,
.login .divider,
.login hr {
    margin: 14px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #eef2ff 50%, transparent);
    border: none;
}

/* Third-party / social login group */
.login .element.button_group,
.login .button_group,
.login .button-group,
.login .social-providers,
.login .socialaccount {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

/* Generic social button base */
.login a.social-btn,
.login .social-btn,
.login .provider a,
.login .socialaccount .provider > a,
.login .socialaccount a {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e6e9ef;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(16,24,40,0.04);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

/* Left icon container for social buttons (works if provider includes an svg/img) */
.login a.social-btn > svg,
.login a.social-btn img,
.login .socialaccount .provider > a svg,
.login .socialaccount .provider > a img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
}

/* Hover for social buttons */
.login a.social-btn:hover,
.login .socialaccount .provider > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16,24,40,0.06);
}

/* Provider-specific styling (optional — add provider class to get color branding) */
.login .social-btn.google,
.login .social-btn--google {
    border-color: rgba(66,133,244,0.15);
}

.login .social-btn.github,
.login .social-btn--github {
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 22px rgba(15,23,42,0.12);
}

.login .social-btn.facebook,
.login .social-btn--facebook {
    background: #1877f2;
    color: #fff;
    border: none;
}

.login .social-btn.apple,
.login .social-btn--apple {
    background: #111827;
    color: #fff;
    border: none;
}

/* If the social snippet renders provider names / labels */
.login .provider,
.login .provider a {
    text-transform: none;
}

/* Footnote / small links */
.login .small,
.login .help-text,
.login .signup-link {
    font-size: 13px;
    color: #6b7280;
}

/* Read-only/layout adjustments for inline fields (admin-like inline) */
.login .inline,
.login .tabular-inline {
    border-radius: 8px;
    padding: 8px;
    background: #fbfbfd;
    border: 1px dashed transparent;
}

/* Focus states for accessibility */
.login a:focus,
.login button:focus,
.login input:focus,
.login select:focus,
.login textarea:focus {
    outline: none;
    box-shadow: 0 8px 26px rgba(99,102,241,0.10);
    border-color: #6366f1;
}

/* Small screens */
@media (max-width: 520px) {
    .login {
        margin: 20px;
        padding: 20px;
        border-radius: 10px;
    }

    .login h1 {
        font-size: 22px;
    }

    .login .element.button_group,
    .login .button_group {
        gap: 8px;
    }
}


.allauth-outer > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
}

.allauth-outer > ul > li > a,
.social-login button,
.logout button,
.allauth-outer button {
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Nunito Sans", sans-serif;
    font-size: 1em;
    font-weight: bold;

    padding: 0.5em 1em;
    margin: 0.25em 0 0.25em 0;

    color: rgb(var(--btn-color));
    background: rgb(var(--btn-bg));
    border: none;
    border-radius: 1.25em;

    cursor: pointer;
    user-select: none;
    text-decoration: none;
    text-align: center;

    transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out,
      background 0.2s ease-in-out;

      width: 100%;
}


.allauth-outer > ul .button.google {
    background: white;
    color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--primary-color));

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}
