/* cadastros/static/cadastros/login.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --bg-page: #f8f9fa;
    --bg-header: #001372;
    --bg-column: #e5e7eb;
    --bg-card: #ffffff;
    --accent: #ff6e00;
    --accent-hover: #ff8533;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-page);
    min-height: 100vh;
    margin: 0;
  }
  
  .login-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
  }
  
  /* LEFT SIDE - LOGIN */
  .login-side {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
  }
  
  .login-content {
    width: 100%;
    max-width: 420px;
    animation: slideInLeft 0.8s ease-out;
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .logo-section {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .logo {
    width: 200px;
    height: auto;
    margin-bottom: 24px;
    animation: fadeIn 1s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .system-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-header);
    margin-bottom: 8px;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 15px;
    color: var(--text-muted);
  }
  
  .divider {
    height: 1px;
    background: var(--border-color);
    margin: 32px 0;
  }
  
  .form-header {
    margin-bottom: 28px;
  }
  
  .form-header h2 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 6px;
  }
  
  .form-header p {
    font-size: 14px;
    color: var(--text-muted);
  }
  
  .form-group {
    margin-bottom: 24px;
  }
  
  label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
  }
  
  input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-page);
  }
  
  input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 110, 0, 0.1);
  }
  
  .btn-login {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
  }
  
  .btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 110, 0, 0.3);
  }
  
  .btn-login:active {
    transform: translateY(0);
  }
  
  .btn-login.loading {
    background: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
  }
  
  .btn-login.loading .btn-text {
    display: none;
  }
  
  .btn-login.loading .spinner {
    display: block;
  }
  
  .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
  }
  
  .message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
  }
  
  .message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
    display: block;
  }
  
  /* RIGHT SIDE - INFO */
  .info-side {
    background: linear-gradient(135deg, var(--bg-header) 0%, #002080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
  }
  
  /* Animated background shapes */
  .info-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 110, 0, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
  }
  
  .info-side::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 110, 0, 0.08) 0%, transparent 60%);
    animation: float 12s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
  }
  
  @keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
  }
  
  .info-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 520px;
    animation: slideInRight 0.8s ease-out;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .info-header {
    margin-bottom: 48px;
  }
  
  .info-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: textFloat 3s ease-in-out infinite;
  }
  
  @keyframes textFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
  }
  
  .info-header .highlight {
    color: var(--accent);
  }
  
  .info-header p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
  }
  
  .features {
    display: grid;
    gap: 24px;
  }
  
  .feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
  }
  
  .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
  }
  
  .feature-card:hover::before {
    left: 100%;
  }
  
  .feature-card:nth-child(1) { animation-delay: 0.2s; }
  .feature-card:nth-child(2) { animation-delay: 0.4s; }
  .feature-card:nth-child(3) { animation-delay: 0.6s; }
  .feature-card:nth-child(4) { animation-delay: 0.8s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 110, 0, 0.3);
  }
  
  .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 110, 0, 0.5);
  }
  
  .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .feature-card p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
  }
  
  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .login-wrapper {
      grid-template-columns: 1fr;
    }
  
    .info-side {
      display: none;
    }
  
    .login-side {
      box-shadow: none;
    }
  }
  
  @media (max-width: 480px) {
    .login-side {
      padding: 24px;
    }
  
    .system-title {
      font-size: 22px;
    }
  
    .logo {
      width: 160px;
    }
  }