/*
 * Feral Fiction Pro v7
 * Feral (De)Composition Engine v22.0
 * Copyright (c) 2024-2026 Postmodern Media LLC. All rights reserved.
 * This software is proprietary and confidential.
 *
 * SPDX-FileCopyrightText: © 2024-2026 Postmodern Media LLC (author: Thomas Reale <tom@feralfiction.com>)
 * SPDX-License-Identifier: LicenseRef-Feral-Fiction-Pro-Commercial-EULA
 */

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

  html, body {
    height: 100%;
    overflow: hidden;
  }

  body {
    background: linear-gradient(to bottom right, #026873, #3fb9b2);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 20px;
    color: #3b2f2f;
    margin: 0;
    padding: 0;
  }

  .hidden { display: none; }

  #eulaModal.hidden {
    display: none;
  }

  #eulaContent ul {
    margin-left: 0;
    padding-left: 1.2em;   /* keeps bullets but aligns text */
  }

  #eulaContent li {
    margin-left: 0;
    padding-left: 0;
  }

  #eulaModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  #eulaBox {
    position: relative;
    background: white;
    color: #2c3e50;
    width: min(900px, 90vw);
    height: min(820px, 88vh);
    padding: 24px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  #eulaTitle {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    margin: 0;
    height: 48px;
    line-height: 1.2;
  }

  #eulaContent {
    position: absolute;
    top: 96px;   /* was probably ~82px */
    left: 24px;
    right: 24px;
    bottom: 120px;
    overflow-y: auto;
    border: 1px solid #aaa;
    padding: 16px;
    background: #fff;
  }

  #eulaAgreementRow {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 76px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
  }

  #eulaCheckbox {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    accent-color: #d77e4d;
    cursor: pointer;
  }

  #eulaActions {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
  }

  #eulaDecline,
  #eulaAccept {
    height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
  }

  #eulaDecline {
    background: #ddd;
    color: #222;
  }

  #eulaAccept:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  
  #login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    margin: 4vh auto;
    padding: 60px 20px 30px 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    text-align: center;
  
    /* New luxury fade-in */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s ease-out forwards;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
  }
  
  #lf-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
  }
  
  #login-card h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #5a3c2d;
  }
  
  input[type="text"],
  input[type="password"] {
    width: 85%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 18px;
    box-sizing: border-box;
    background-color: #fffaf2;
  }
  
  button {
    width: 90%;
    padding: 14px;
    margin-top: 20px;
    background-color: #d77e4d;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  button:hover {
    background-color: #bb5d2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .links {
    margin-top: 15px;
    font-size: 0.9rem;
  }

  .links a {
    color: #3b2f2f;
    text-decoration: none;
    margin: 0 5px;
  }

  .links a:hover {
    text-decoration: underline;
  }

  .message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .message.error {
    background: #f8d7da;
    color: #842029;
  }

  .message.info {
    background: #d1ecf1;
    color: #0c5460;
  }

  .message.visible {
    opacity: 1;
  }

  /* Footer */
  .ff-footer {
    padding: 16px 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
  }

  .ff-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 4px;
  }

  .ff-footer a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
  }

  .ff-footer-sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 2px;
  }

  @media (max-width: 480px) {
    .ff-footer {
      padding: 12px 16px;
      font-size: 13px;
    }
    .ff-footer-sep {
      display: none;
    }
    .ff-footer a {
      display: inline-block;
      margin: 0 8px;
    }
  }
  
  /* Mobile tweaks */
  @media screen and (max-width: 480px) {
    #login-card {
      width: 90%;
      padding: 20px;
    }
  
    input[type="text"],
    input[type="password"],
    button {
      font-size: 18px;
    }
  
    .links {
      font-size: 14px;
    }
  }
  