/* Signup and accept-invitation pages. Loaded before brand.css, which refines them. */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    padding: 20px 0;
}

.auth-container {
    display: block;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 450px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.auth-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    border: none;
    padding: 14px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.auth-links {
    text-align: center;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    color: white;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.divider span {
    background: transparent;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Accept invitation */

.invitation-info {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.invitation-info h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.invitation-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.role-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.form-control[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.brand-auth .auth-oauth-providers {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    margin: 0 0 1rem;
}

.brand-auth .auth-oauth-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.7rem;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid rgba(15, 23, 42, 0.16);
    font-weight: 600;
    text-decoration: none;
}

.brand-auth .auth-oauth-provider:hover,
.brand-auth .auth-oauth-provider:focus-visible {
    background: #f8fafc;
    color: #0f172a;
}

.brand-auth .auth-oauth-provider__logo {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.brand-auth .auth-oauth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    color: var(--text-muted, #696175);
    font-size: 0.9rem;
}

.brand-auth .auth-oauth-divider::before,
.brand-auth .auth-oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
}

@media (max-width: 390px) {
    .brand-auth .auth-oauth-provider {
        min-height: 2.9rem;
    }
}


/* Theme-aware logo: do not force white invert on light mode. */
html[data-theme="light"] .brand-auth .logo img,
html.light-theme .brand-auth .logo img,
body.brand-auth.light-theme .logo img,
html[data-theme="light"] body.brand-auth .logo img {
  filter: none !important;
}

html[data-theme="light"] body.brand-auth .form-group label,
html.light-theme body.brand-auth .form-group label,
body.brand-auth.light-theme .form-group label {
  color: #334155 !important;
}

html[data-theme="light"] body.brand-auth .auth-links a,
html.light-theme body.brand-auth .auth-links a,
body.brand-auth.light-theme .auth-links a {
  color: #4c1d95 !important;
}
