/* Machine interface: isolated structural compatibility. Edit machine-interface.css for design. */
/* V2 scoped structural compatibility. No legacy stylesheet imports. */
:where(html.cf-machine-interface) * {
margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:where(html.cf-machine-interface) body {
font-family: 'DM Sans', 'Verdana', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: #F6EBDD;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(html.cf-machine-interface) .register-page {
position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

:where(html.cf-machine-interface) .ambient-layer {
position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

:where(html.cf-machine-interface) .hex-pattern {
position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23FF3621' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.8;
}

:where(html.cf-machine-interface) .ambient-blob {
position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

:where(html.cf-machine-interface) .ambient-blob.blob-1 {
width: 600px;
  height: 600px;
  background: radial-gradient(circle, #884A28 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: mi-cf-blobFloat1 15s ease-in-out infinite;
}

:where(html.cf-machine-interface) .ambient-blob.blob-2 {
width: 500px;
  height: 500px;
  background: radial-gradient(circle, #BA8655 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: mi-cf-blobFloat2 18s ease-in-out infinite;
}

:where(html.cf-machine-interface) .ambient-blob.blob-3 {
width: 400px;
  height: 400px;
  background: radial-gradient(circle, #A86A43 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation: mi-cf-blobFloat3 12s ease-in-out infinite;
}

@keyframes mi-cf-blobFloat1 {
0%, 100% {
transform: translate(0, 0) scale(1);
}

33% {
transform: translate(50px, 30px) scale(1.1);
}

66% {
transform: translate(-30px, 50px) scale(0.95);
}
}

@keyframes mi-cf-blobFloat2 {
0%, 100% {
transform: translate(0, 0) scale(1);
}

33% {
transform: translate(-40px, -30px) scale(1.05);
}

66% {
transform: translate(30px, -40px) scale(0.9);
}
}

@keyframes mi-cf-blobFloat3 {
0%, 100% {
transform: translate(0, 0) scale(1);
}

50% {
transform: translate(-50px, 30px) scale(1.15);
}
}

:where(html.cf-machine-interface) .register-container {
position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
}

:where(html.cf-machine-interface) .register-sidebar {
display: none;
  width: 480px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(26, 21, 18, 0.95) 0%, rgba(45, 38, 34, 0.9) 100%);
  border-right: 1px solid rgba(136, 74, 40, 0.2);
  position: relative;
  overflow: hidden;
}

:where(html.cf-machine-interface) .register-sidebar::before {
content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(136, 74, 40, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

:where(html.cf-machine-interface) .register-sidebar::after {
content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #884A28, #BA8655, transparent);
  opacity: 0.6;
}

:where(html.cf-machine-interface) .sidebar-content {
position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 60px 48px;
}

:where(html.cf-machine-interface) .brand-section {
margin-bottom: 60px;
}

:where(html.cf-machine-interface) .brand-mark {
width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #884A28 0%, #BA8655 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(136, 74, 40, 0.4);
  animation: mi-cf-brandPulse 3s ease-in-out infinite;
}

:where(html.cf-machine-interface) .brand-mark svg {
width: 40px;
  height: 40px;
  color: #FFFFFF;
}

@keyframes mi-cf-brandPulse {
0%, 100% {
box-shadow: 0 8px 32px rgba(136, 74, 40, 0.4);
}

50% {
box-shadow: 0 12px 48px rgba(136, 74, 40, 0.6);
}
}

:where(html.cf-machine-interface) .brand-name {
font-size: 32px;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #884A28 0%, #A86A43 50%, #BA8655 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

:where(html.cf-machine-interface) .brand-tagline {
font-size: 16px;
  color: #9A8574;
  letter-spacing: 1px;
}

:where(html.cf-machine-interface) .features-list {
flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

:where(html.cf-machine-interface) .feature-item {
display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(136, 74, 40, 0.1);
  transition: all 0.3s ease;
}

:where(html.cf-machine-interface) .feature-item:hover {
background: rgba(136, 74, 40, 0.08);
  border-color: rgba(136, 74, 40, 0.2);
  transform: translateX(8px);
}

:where(html.cf-machine-interface) .feature-icon {
width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(136, 74, 40, 0.2) 0%, rgba(186, 134, 85, 0.2) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

:where(html.cf-machine-interface) .feature-icon svg {
width: 24px;
  height: 24px;
  color: #A86A43;
}

:where(html.cf-machine-interface) .feature-text {
display: flex;
  flex-direction: column;
  gap: 4px;
}

:where(html.cf-machine-interface) .feature-title {
font-size: 16px;
  font-weight: 600;
  color: #F6EBDD;
}

:where(html.cf-machine-interface) .feature-desc {
font-size: 13px;
  color: #9A8574;
}

:where(html.cf-machine-interface) .sidebar-footer {
margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(136, 74, 40, 0.15);
}

:where(html.cf-machine-interface) .stats-row {
display: flex;
  align-items: center;
  justify-content: space-between;
}

:where(html.cf-machine-interface) .stat-item {
display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

:where(html.cf-machine-interface) .stat-value {
font-size: 24px;
  font-weight: 700;
  color: #A86A43;
}

:where(html.cf-machine-interface) .stat-label {
font-size: 12px;
  color: #9A8574;
  text-transform: uppercase;
  letter-spacing: 1px;
}

:where(html.cf-machine-interface) .stat-divider {
width: 1px;
  height: 40px;
  background: rgba(136, 74, 40, 0.2);
}

:where(html.cf-machine-interface) .register-main {
flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #F5EBDD 0%, #FAF4EC 100%);
}

:where(html.cf-machine-interface) .register-form-wrapper {
width: 100%;
  max-width: 420px;
  animation: mi-cf-formSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mi-cf-formSlideIn {
from {
opacity: 0;
    transform: translateY(24px);
}

to {
opacity: 1;
    transform: translateY(0);
}
}

:where(html.cf-machine-interface) .mobile-brand {
display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

:where(html.cf-machine-interface) .mobile-brand .brand-mark {
width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #884A28 0%, #BA8655 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(136, 74, 40, 0.3);
  margin-bottom: 0;
}

:where(html.cf-machine-interface) .mobile-brand .brand-mark svg {
width: 36px;
  height: 36px;
  color: #FFFFFF;
}

:where(html.cf-machine-interface) .mobile-brand .brand-name {
font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #884A28 0%, #A86A43 50%, #BA8655 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

:where(html.cf-machine-interface) .form-header {
margin-bottom: 32px;
}

:where(html.cf-machine-interface) .auth-tabs {
display: flex;
  position: relative;
  background: rgba(232, 221, 214, 0.8);
  border-radius: 14px;
  padding: 6px;
  border: 1px solid #E7D8C8;
}

:where(html.cf-machine-interface) .auth-tab {
flex: 1;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #796659;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
  text-transform: uppercase;
}

:where(html.cf-machine-interface) .auth-tab:hover {
color: #A86A43;
}

:where(html.cf-machine-interface) .auth-tab.active {
color: #FFFFFF;
}

:where(html.cf-machine-interface) .tab-indicator {
position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: 48px;
  background: linear-gradient(135deg, #884A28 0%, #A86A43 50%, #BA8655 100%);
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 4px 16px rgba(136, 74, 40, 0.3);
  transform: translateX(100%);
}

:where(html.cf-machine-interface) .auth-tab:first-of-type.active ~ .tab-indicator {
transform: translateX(0);
}

:where(html.cf-machine-interface) .register-form {
background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

:where(html.cf-machine-interface) .form-field {
margin-bottom: 20px;
}

:where(html.cf-machine-interface) .field-label {
display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #796659;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

:where(html.cf-machine-interface) .field-label svg {
width: 16px;
  height: 16px;
  color: #884A28;
}

:where(html.cf-machine-interface) .input-field {
position: relative;
}

:where(html.cf-machine-interface) .input-field input {
width: 100%;
  height: 54px;
  padding: 0 48px 0 18px;
  background: #FFFFFF;
  border: 2px solid #E7D8C8;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  color: #342219;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(45, 38, 34, 0.06);
}

:where(html.cf-machine-interface) .input-field input:hover {
border-color: rgba(136, 74, 40, 0.3);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(45, 38, 34, 0.08);
}

:where(html.cf-machine-interface) .input-field input:focus {
outline: none;
  border-color: #884A28;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(136, 74, 40, 0.1);
}

:where(html.cf-machine-interface) .input-field input::placeholder {
color: #9A8574;
  font-weight: 400;
}

:where(html.cf-machine-interface) .input-focus-ring {
position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 18px;
  border: 2px solid transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}

:where(html.cf-machine-interface) .input-field input:focus ~ .input-focus-ring {
border-color: rgba(136, 74, 40, 0.2);
}

:where(html.cf-machine-interface) .input-field.has-error input {
border-color: #EF4444;
  background: rgba(239, 68, 68, 0.03);
}

:where(html.cf-machine-interface) .input-field.has-error input:focus {
box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

:where(html.cf-machine-interface) .field-action {
position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #9A8574;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

:where(html.cf-machine-interface) .field-action:hover {
color: #884A28;
  background: rgba(136, 74, 40, 0.08);
}

:where(html.cf-machine-interface) .field-action svg {
width: 20px;
  height: 20px;
}

:where(html.cf-machine-interface) .field-error {
font-size: 12px;
  color: #EF4444;
  margin-top: 8px;
  padding-left: 4px;
  display: none;
  animation: mi-cf-errorShake 0.4s ease;
}

:where(html.cf-machine-interface) .field-error.visible {
display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes mi-cf-errorShake {
0%, 100% {
transform: translateX(0);
}

20% {
transform: translateX(-6px);
}

40% {
transform: translateX(6px);
}

60% {
transform: translateX(-4px);
}

80% {
transform: translateX(4px);
}
}

:where(html.cf-machine-interface) .field-error svg {
width: 14px;
  height: 14px;
  flex-shrink: 0;
}

:where(html.cf-machine-interface) .register-btn {
width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #884A28 0%, #A86A43 50%, #BA8655 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(136, 74, 40, 0.3);
}

:where(html.cf-machine-interface) .register-btn::before {
content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

:where(html.cf-machine-interface) .register-btn:hover {
background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(136, 74, 40, 0.4);
}

:where(html.cf-machine-interface) .register-btn:hover::before {
left: 100%;
}

:where(html.cf-machine-interface) .register-btn:active {
transform: translateY(0);
}

:where(html.cf-machine-interface) .register-btn:disabled {
background: linear-gradient(135deg, #E7D8C8 0%, #D8CCC5 100%);
  color: #9A8574;
  cursor: not-allowed;
  box-shadow: none;
}

:where(html.cf-machine-interface) .register-btn:disabled:hover {
transform: none;
}

:where(html.cf-machine-interface) .btn-text {
display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}

:where(html.cf-machine-interface) .register-btn.loading .btn-text {
opacity: 0;
}

:where(html.cf-machine-interface) .btn-spinner {
position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

:where(html.cf-machine-interface) .register-btn.loading .btn-spinner {
opacity: 1;
  animation: mi-cf-spin 0.8s linear infinite;
}

@keyframes mi-cf-spin {
to {
transform: translate(-50%, -50%) rotate(360deg);
}
}

:where(html.cf-machine-interface) .form-footer {
margin-top: 28px;
  text-align: center;
}

:where(html.cf-machine-interface) .footer-text {
font-size: 14px;
  color: #796659;
}

:where(html.cf-machine-interface) .footer-text a {
color: #884A28;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

:where(html.cf-machine-interface) .footer-text a:hover {
color: #A86A43;
  text-decoration: underline;
}

:where(html.cf-machine-interface) .loading-overlay {
position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 21, 18, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

:where(html.cf-machine-interface) .loading-overlay.show {
opacity: 1;
  visibility: visible;
}

:where(html.cf-machine-interface) .loading-content {
text-align: center;
}

:where(html.cf-machine-interface) .loading-spinner {
width: 56px;
  height: 56px;
  border: 3px solid rgba(136, 74, 40, 0.2);
  border-top-color: #884A28;
  border-radius: 50%;
  animation: mi-cf-spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin: 0 auto 24px;
  box-shadow: 0 0 40px rgba(136, 74, 40, 0.4);
}

:where(html.cf-machine-interface) .loading-text {
font-size: 16px;
  font-weight: 600;
  color: #A86A43;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

:where(html.cf-machine-interface) .toast-notification {
position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(45, 38, 34, 0.15);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 320px;
  max-width: 90vw;
  border: 1px solid #E7D8C8;
}

:where(html.cf-machine-interface) .toast-notification.show {
opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

:where(html.cf-machine-interface) .toast-content {
display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 14px;
}

:where(html.cf-machine-interface) .toast-icon {
flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

:where(html.cf-machine-interface) .toast-message {
font-size: 14px;
  font-weight: 600;
  color: #342219;
  letter-spacing: 0.5px;
}

:where(html.cf-machine-interface) .toast-notification.success {
border-color: #22C55E;
  background: rgba(34, 197, 94, 0.08);
}

:where(html.cf-machine-interface) .toast-notification.success .toast-icon {
color: #22C55E;
}

:where(html.cf-machine-interface) .toast-notification.success .toast-message {
color: #166534;
}

:where(html.cf-machine-interface) .toast-notification.error {
border-color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

:where(html.cf-machine-interface) .toast-notification.error .toast-icon {
color: #EF4444;
}

:where(html.cf-machine-interface) .toast-notification.error .toast-message {
color: #991B1B;
}

@media (min-width: 1024px) {
:where(html.cf-machine-interface) .register-sidebar {
display: block;
}

:where(html.cf-machine-interface) .mobile-brand {
display: none;
}

:where(html.cf-machine-interface) .register-main {
padding: 60px 80px;
}

:where(html.cf-machine-interface) .register-form-wrapper {
max-width: 440px;
}
}

@media (min-width: 1280px) {
:where(html.cf-machine-interface) .register-sidebar {
width: 520px;
}

:where(html.cf-machine-interface) .sidebar-content {
padding: 80px 60px;
}

:where(html.cf-machine-interface) .register-main {
padding: 80px 120px;
}
}

@media (max-width: 480px) {
:where(html.cf-machine-interface) .register-main {
padding: 32px 20px;
}

:where(html.cf-machine-interface) .mobile-brand {
margin-bottom: 32px;
}

:where(html.cf-machine-interface) .mobile-brand .brand-mark {
width: 56px;
    height: 56px;
    border-radius: 16px;
}

:where(html.cf-machine-interface) .mobile-brand .brand-mark svg {
width: 32px;
    height: 32px;
}

:where(html.cf-machine-interface) .mobile-brand .brand-name {
font-size: 22px;
    letter-spacing: 4px;
}

:where(html.cf-machine-interface) .form-header {
margin-bottom: 24px;
}

:where(html.cf-machine-interface) .auth-tabs {
padding: 5px;
}

:where(html.cf-machine-interface) .auth-tab {
height: 44px;
    font-size: 14px;
}

:where(html.cf-machine-interface) .tab-indicator {
top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: 44px;
}

:where(html.cf-machine-interface) .form-field {
margin-bottom: 16px;
}

:where(html.cf-machine-interface) .input-field input {
height: 50px;
    font-size: 14px;
    border-radius: 12px;
}

:where(html.cf-machine-interface) .register-btn {
height: 52px;
    font-size: 15px;
    border-radius: 12px;
}

:where(html.cf-machine-interface) .form-footer {
margin-top: 24px;
}

:where(html.cf-machine-interface) .toast-notification {
min-width: 280px;
}
}

@media (max-width: 360px) {
:where(html.cf-machine-interface) .register-main {
padding: 24px 16px;
}

:where(html.cf-machine-interface) .auth-tabs {
padding: 4px;
}

:where(html.cf-machine-interface) .auth-tab {
height: 40px;
    font-size: 13px;
}

:where(html.cf-machine-interface) .tab-indicator {
top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: 40px;
}

:where(html.cf-machine-interface) .input-field input {
height: 48px;
}

:where(html.cf-machine-interface) .register-btn {
height: 48px;
}
}

@media (prefers-reduced-motion: reduce) {
:where(html.cf-machine-interface) *,
:where(html.cf-machine-interface) *::before,
:where(html.cf-machine-interface) *::after {
animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
}
}
