@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');

:root {
    --color-primary-dark: #7e00cb;
    --color-primary-mid: #921ed9;
    --color-primary-light: #9d4dce;
    
    --color-black: #000000;
    --color-white: #ffffff;
    --color-background: #f0f2f5; 
    --color-text: #333;
    --color-text-light: #f4f4f4;
    --color-border: #d9d9d9;

    --font-primary: 'Titillium Web', sans-serif;

    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    --border-radius: 8px;
    --shadow-main: 0 4px 12px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
}


.login-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(
      45deg,       /* Direção: Diagonal (baixo-esq para cima-dir) */
      #8104CD 0%,  /* Cor 1: Roxo profundo (base) */
      #993BD2 50%, /* Cor 2: Violeta vibrante (meio) */
      #B37CD4 100% /* Cor 3: Lilás claro (topo) */
    );
}

.branding-column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50%;
    min-height: 100vh;
    height: 100%;
    padding: 20px;
}

.logo-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; 
    height: 100%;
    max-width: 350px; 
}

.logo-branding img {
    width: 100%;    
    height: auto;   
    display: block; 
}

.form-column{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    /* padding: 15px; */
    width: 50%;
    height: 100%;
}

.card-form{
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Para Safari */
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.branding-logo {
    width: 100%;
    height: auto; 
    object-fit: contain; 
}

.card-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark); 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.form-group label {
    display: block;      
    margin-bottom: 8px;  
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-primary-dark);   
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: transparent; 
    border: 1px solid var(--color-primary-dark); 
    border-radius: 10px;   
    color: var(--color-text);         
    font-size: 1.25rem;
    outline: none;        
    transition: 0.3s;     
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;    
    gap: var(--spacing-md);
}

.form-group input:focus {
    outline: 0;
    border-color: var(--color-primary-mid);
    box-shadow: 0 0 0 3px hsla(276, 70%, 55%, 0.3);
}
.input-wrapper {
    position: relative; 
    width: 100%;
}

.input-icon {
    position: absolute; 
    right: 15px;        
    top: 50%;          
    transform: translateY(-50%); 
    width: 24px;        
    height: 24px;
    color: var(--color-text);
    transition: color 0.3s;
}

.btn-login {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-primary-dark);
    border: none;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: var(--spacing-sm);
}

.btn-login:hover {
    background-color: var(--color-primary-mid);
}

.btn-login:focus {
    outline: 0;
    box-shadow: 0 0 0 3px hsla(276, 100%, 40%, 0.4);
}




.flash-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1050;
  width: 300px;
}

.flash-message {
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease, transform 0.3s ease;
  opacity: 1;
}

.flash-message.success {
  background-color: var(--cor-primaria);
}

.flash-message.error {
  background-color: #f44336;
}

.flash-message.info {
  background-color: var(--btn-hover-secundario);
}

.flash-message.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}


/*  ANIMAÇÃO DE CARREGAMENTO  */

div#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader .title {
    color: #000;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: lighter;
    text-align: center;
    font-family: arial;
}
.loader-pin {
    width: 150px;
    height: 150px;
    display: block;
    margin-bottom: 40px;
    box-sizing: border-box;
    position: relative;
    perspective: 1000px; 
}

.loader-pin::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url('../img/simbolo_prisma_roxo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    animation: spin3D 2s linear infinite; 
}

.loader-pin::before {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 150%;
    width: 24px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

@keyframes spin3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}
