/* =========================================================
   PharmaTrack Auth Styles - style.css
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0b1120;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 1) 0px, rgba(11, 17, 32, 1) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    animation: authFadeIn 0.35s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 8px 10px -6px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.register-card {
    max-width: 460px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.4;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.15s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-with-icon input::placeholder {
    color: #94a3b8;
}

/* Buttons */
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}

.submit-button:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

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

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 6px 0;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 10px;
}

.register-link-button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.register-link-button:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Error Banner */
.error-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.error-banner svg {
    flex-shrink: 0;
}
.invitation-status,.auth-success{padding:12px 14px;border-radius:10px;background:#ecfdf5;color:#047857;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.invitation-status.invalid{background:#fef2f2;color:#b91c1c}.auth-success{margin-bottom:18px}.submit-button:disabled{opacity:.6;cursor:wait}

/* Entry forms use the same control geometry as the application. */
.auth-card { border: 1px solid #d6e2f2; border-radius: 18px; }
.auth-form, .input-group, .input-with-icon { min-width: 0; }
.input-with-icon input { min-width: 0; min-height: 42px; }
.submit-button, .register-link-button { min-height: 42px; font-family: inherit; line-height: 1.4; }
.submit-button { background: linear-gradient(135deg, #3678ed, #215ed4); border: 1px solid #2460ce; box-shadow: 0 3px 8px #2563eb1c; }
.submit-button:focus-visible, .register-link-button:focus-visible { outline: 3px solid #91b8fa; outline-offset: 3px; }
@media (max-width: 480px) {
  body { padding: 16px; }
  .auth-card { padding: 24px 20px; }
  .input-with-icon input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
