/*************************************************************************
 *  Copyright (C) 2026 SecureFlag Limited
 *  All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains the property
 * of SecureFlag Limited. The intellectual and technical concepts contained
 * herein are proprietary to SecureFlag Limited and may be covered by EU
 * and Foreign Patents, patents in process, and are protected by trade secret
 * or copyright law. Dissemination of this information or reproduction of this
 * material is strictly forbidden unless prior written permission is obtained
 * from SecureFlag Limited.
 */

/* ------------------------------------------------------------------ *
 * Trials signup redesign (dark theme).
 * Builds on login.css + signup-smb.css (shared .sfl-* design system).
 * Adds only the trials-specific pieces that login/SMB don't have:
 *   - phase wrapper (multi-step: phase0 plans -> phase2 providers -> phase3 form)
 *   - the three plan cards (Personal / Business / Enterprise) grid
 *   - the OAuth provider selection list
 * All AngularJS hooks (ng-show / ng-model / ng-click / ng-class / ng-repeat /
 * form + field names + directives) live in the markup and are untouched.
 * ------------------------------------------------------------------ */

/* Each phase centers its own hero + content within .sfl-content */
.sfl-phase {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Anchors styled as buttons (Business / Enterprise / provider CTAs) */
a.sfl-btn,
a.sfl-btn:hover,
a.sfl-btn:focus {
  text-decoration: none;
  color: #ffffff;
}

/* ---- Plan selection (phase0) ---- */
.sfl-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  align-items: stretch;
}

.sfl-plan {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.sfl-plan--selectable {
  cursor: pointer;
}
.sfl-plan--selectable:hover {
  border-color: rgba(47, 111, 214, 0.6);
}
.sfl-plan.selected-plan {
  border-color: var(--sfl-blue);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px var(--sfl-blue), 0 16px 40px rgba(47, 111, 214, 0.18);
}

.sfl-plan__logo {
  display: block;
  width: auto;
  height: 50px;
  max-width: 56px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.sfl-plan__name {
  margin: 0 0 12px;
  font-family: "Poppins", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--sfl-text);
}
.sfl-plan__seats {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--sfl-text-subdued);
}
.sfl-plan__seats-num {
  font-weight: 700;
  color: var(--sfl-text);
}
.sfl-plan__trial {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sfl-blue);
}
.sfl-plan__price {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--sfl-text-muted);
}
.sfl-plan__price strong {
  color: var(--sfl-text);
  font-weight: 700;
}
.sfl-plan__price a {
  color: var(--sfl-blue);
}

.sfl-plan__features {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.sfl-plan__features li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14px;
  line-height: 20px;
  color: var(--sfl-text-subdued);
}
.sfl-plan__features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 9px;
  border: solid var(--sfl-blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sfl-plan__features sup {
  color: var(--sfl-text-muted);
}
.sfl-plan__note {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 15px;
  color: var(--sfl-text-muted);
  text-align: left;
}

/* Terms + CTA pinned to the bottom so all three cards align */
.sfl-plan__cta {
  margin-top: auto;
}
.sfl-plan__terms-form {
  margin: auto 0 16px;
  text-align: left;
}
.sfl-plan--selectable .sfl-plan__cta {
  margin-top: 0;
}

/* Disabled CTA (personal card, before terms accepted) */
.sfl-plan__cta:disabled,
.sfl-plan__cta[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.sfl-plan__cta:disabled:hover,
.sfl-plan__cta[disabled]:hover {
  background: var(--sfl-blue);
}

/* ---- OAuth provider selection (phase2) ---- */
.sfl-providers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sfl-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(90deg, #17181b 0%, #283343 100%);
  color: var(--sfl-text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, filter 150ms ease;
}
.sfl-provider:hover {
  border-color: rgba(47, 111, 214, 0.6);
  filter: brightness(1.12);
}
.sfl-provider__logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ---- Create-account form card (phase3) ---- *
 * Wider and less padded than the shared login card, per Figma
 * (node 6201:9234). Scoped by id so signup-smb's card is untouched. */
#signupTrialsPanel.sfl-card--wide {
  max-width: 618px;
  padding: 24px;
}

/* ---- Responsive ---- */
@media screen and (max-width: 900px) {
  .sfl-plans {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .sfl-plan__cta,
  .sfl-plan--selectable .sfl-plan__cta {
    margin-top: 16px;
  }
  .sfl-plan__terms-form {
    margin: 8px 0 4px;
  }
}
