﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.sweetalert-lg {
  font-size: 14px !important;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: auto;

    &&::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
                radial-gradient(circle at 80% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 60% 20%, rgba(5, 150, 105, 0.10) 0%, transparent 50%),
                linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
    }
}

/* Floating particles */
.particles { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

.login-container {
    width: 100%;
    max-width: 1200px;
    max-height: min(90vh, 800px);
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, hsl(200, 3%, 5%), hsl(200, 3%, 15%));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;

    .brand-section {
        padding: 80px 60px;
        /* background: linear-gradient(135deg, 
            rgba(34, 197, 94, 0.1) 0%, 
            rgba(16, 185, 129, 0.05) 50%,
            rgba(5, 150, 105, 0.1) 100%); */
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        /* border-right: 1px solid rgba(255, 255, 255, 0.1); */

        &&::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.03) 0%, transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
        }

        .brand-logo {
            width: 80px;
            height: 80px;
            background: rgba(34, 197, 94, 0.1);
            border: 2px solid rgba(34, 197, 94, 0.3);
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                0 8px 32px rgba(34, 197, 94, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            position: relative;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            margin-bottom: 1rem;

            &&::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.4s ease;
            }

            &&:hover {
                transform: scale(1.05) ;
                border-color: rgba(34, 197, 94, 0.6);
                box-shadow: 
                    0 15px 50px rgba(34, 197, 94, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }
            
            > img {
                width: 55px;
                height: 37px;
            }
        }

        .brand-logo:hover::before {
            left: 100%;
        }

        .brand-content {
            position: relative;
            z-index: 1;

            .brand-title {
                font-size: 3.5rem;
                font-weight: 700;
                background: linear-gradient(135deg, #ffffff, #22c55e 90%);
                text-shadow: 0px 0px 3px rgba(224, 224, 224, 1);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                margin-bottom: 8px;
                letter-spacing: -0.03em;
                line-height: 1.1;
            }

            .brand-company {
                font-size: 1.1rem;
                color: rgba(255, 255, 255, 0.7);
                font-weight: 400;
                margin-bottom: 32px;
                letter-spacing: 0.02em;
                

                > a{
                  text-decoration: none;
                  color: rgba(255, 255, 255, 0.7);
                  transition: color 0.3s ease;
                  cursor: pointer;
                    &&:hover {
                      color: rgba(34, 197, 94, 0.8);
                  }
                }

                
            }

            .brand-description {
                font-size: 1.2rem;
                color: rgba(255, 255, 255, 0.9);
                line-height: 1.6;
                margin-bottom: 40px;
                font-weight: 300;
            }

            .brand-features {
                display: grid;
                gap: 16px;

                .feature-item {
                    display: flex;
                    align-items: center;
                    gap: 16px;
                    padding: 16px 20px;
                    background: rgba(255, 255, 255, 0.03);
                    border-radius: 12px;
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    transition: all 0.3s ease;

                    &&:hover {
                        background: rgba(255, 255, 255, 0.05);
                        transform: translateX(4px);
                    }

                    .feature-icon {
                        width: 24px;
                        height: 24px;
                        background: linear-gradient(135deg, #22c55e, #10b981);
                        border-radius: 6px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex-shrink: 0;

                        > svg {
                            width: 14px;
                            height: 14px;
                            fill: white;
                        }
                    }

                    .feature-text {
                        color: rgba(255, 255, 255, 0.9);
                        font-size: 0.95rem;
                        font-weight: 500;
                        cursor: default;
                    }
                }
            }
        }
    }

    .login-section {
        padding: 80px 60px;
        /* background: rgba(255, 255, 255, 0.02); */
        display: flex;
        flex-direction: column;
        justify-content: center;

        .login-header {
            margin-bottom: 48px;

            .login-title {
                font-size: 2.5rem;
                font-weight: 700;
                color: #ffffff;
                margin-bottom: 8px;
                letter-spacing: -0.02em;
            }

            .login-subtitle {
                font-size: 1.1rem;
                color: rgba(255, 255, 255, 0.6);
                font-weight: 400;
            }
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 28px;

            .form-group {
                display: flex;
                flex-direction: column;
                gap: 8px;

                .form-label {
                    font-size: 0.9rem;
                    font-weight: 600;
                    color: rgba(255, 255, 255, 0.9);
                    text-transform: uppercase;
                    letter-spacing: 0.05em;
                    padding-left: 8px;
                }

                .input-wrapper {
                    position: relative;

                    .form-input {
                        width: 100%;
                        padding: 18px 24px;
                        background: rgba(255, 255, 255, 0.05);
                        border: 1.5px solid rgba(255, 255, 255, 0.15);
                        border-radius: 12px;
                        color: #ffffff;
                        font-size: 1rem;
                        font-weight: 400;
                        transition: all 0.3s ease;
                        backdrop-filter: blur(10px);
                        outline: none;

                        &&::placeholder {
                            color: rgba(255, 255, 255, 0.4);
                        }

                        &&:focus {
                            /* border-color: #22c55e; */
                            background: rgba(255, 255, 255, 0.08);
                            box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
                        }

                        &&:hover {
                            border-color: rgba(255, 255, 255, 0.25);
                        }
                    }

                    .password-toggle {
                        position: absolute;
                        right: 12px;
                        top: 50%;
                        transform: translateY(-50%);
                        background: none;
                        border: none;
                        color: rgba(255, 255, 255, 0.6);
                        cursor: pointer;
                        padding: 8px;
                        border-radius: 6px;
                        transition: all 0.3s ease;

                        &&:hover {
                            color: #22c55e;
                            background: rgba(34, 197, 94, 0.1);
                        }
                    }
                }
            }

            .form-actions {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-top: -8px;

                .remember-me {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    color: rgba(255, 255, 255, 0.7);
                    font-size: 0.9rem;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.3s ease;

                    &&:hover {
                        color: rgba(255, 255, 255, 0.9);
                        transform: translateX(2px);
                    }

                    .custom-checkbox {
                        width: 22px;
                        height: 22px;
                        border: 2px solid rgba(255, 255, 255, 0.3);
                        border-radius: 6px;
                        position: relative;
                        transition: all 0.3s ease;

                        &&:hover {
                            border-color: rgba(34, 197, 94, 0.5);
                            transform: scale(1.1);
                        }
                    }

                    .custom-checkbox.checked {
                        background: linear-gradient(135deg, #22c55e, #10b981);
                        border-color: #22c55e;
                        transform: scale(1.1);
                    }

                    .custom-checkbox.checked::after {
                        content: '✓';
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        color: white;
                        font-size: 12px;
                        font-weight: bold;
                    }
                }

                .forgot-password {
                    color: #22c55e;
                    text-decoration: none;
                    font-size: 0.9rem;
                    font-weight: 500;
                    transition: all 0.3s ease;

                    &&:hover {
                        color: #10b981;
                        text-decoration: underline;
                        transform: translateX(-2px);
                    }
                }
            }

            .login-button {
                width: 100%;
                padding: 22px;
                background: linear-gradient(135deg, #1e4539 0%, #0d8e6a 100%);
                border: none;
                border-radius: 14px;
                color: white;
                font-size: 1.1rem;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                position: relative;
                overflow: hidden;
                box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
            }

        .login-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s ease;
        }

        .login-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 50px rgba(34, 197, 94, 0.4);
        }

        .login-button:hover::before {
            left: 100%;
        }

        .login-button:active {
            transform: translateY(-1px);
        }

        .login-button.loading {
            opacity: 0.8;
            pointer-events: none;
        }

        .login-button.loading .button-text {
            opacity: 0;
        }

        .login-button .spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .login-button.loading .spinner {
            opacity: 1;
            visibility: visible;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

            
        }
        .security-footer {
            margin-top: 40px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);

            .security-title {
                font-size: 0.9rem;
                font-weight: 600;
                color: #22c55e;
                margin-bottom: 8px;
                display: flex;
                align-items: center;
                gap: 8px;
                cursor: default;
            }

            .security-text {
                font-size: 0.85rem;
                color: rgba(255, 255, 255, 0.6);
                line-height: 1.5;
                cursor: default;
            }
        }
    }
}

/* Error states */
.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.form-input.error + .error-message {
    display: block;
}

/* Entrance animation */
.login-container {
    animation: containerEntrance .5s ease-out;
}

@keyframes containerEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

input[data-autocompleted],
input:-internal-autofill-selected {
    background-color: rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: transparent !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}


/* Responsive Design */

/* MacBook Pro 13" e 14" (1440x900, 1512x982) */
@media (min-width: 1025px) and (max-height: 1000px) {
    .login-container {
        max-height: 85vh;
        min-height: 550px;
    }
    
    .brand-section,
    .login-section {
        padding: 50px 45px;
    }
    
    .brand-title {
        font-size: 2.8rem !important;
    }
    
    .login-title {
        font-size: 2rem !important;
    }
}

/* MacBook Pro 16" e monitores menores (1728x1117) */
@media (min-width: 1025px) and (max-height: 1150px) {
    .login-container {
        max-height: 95vh;
        min-height: 600px;
    }
}

@media (min-width: 1025px) and (min-height: 1200px) {
    .login-container {
        max-height: 800px;
        min-height: 700px;
    }
    
    .brand-section,
    .login-section {
        padding: 80px 60px;
    }
    
    .brand-title {
        font-size: 3.5rem !important;
    }
    
    .login-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
        height: 90vh;
    }
    
    .brand-section {
        padding: 50px 40px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .brand-title {
        font-size: 2.5rem !important;
    }
    
    .login-section {
        padding: 50px 40px !important;
    }
}

@media (max-width: 768px) {
    .brand-section,
    .login-section {
        padding: 40px 30px !important;
    }
    
    .brand-title {
        font-size: 2rem !important;
    }
    
    .login-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px !important;
    }
    
    .login-container {
        border-radius: 16px !important;
    }
    
    .brand-section,
    .login-section {
        padding: 30px 20px !important;
    }
    
    .brand-title {
        font-size: 1.8rem !important;
    }
    
    .login-title {
        font-size: 1.8rem !important;
    }
    
    .form-actions {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
    }
    .brand-logo{
      width: 70px !important;
      height: 70px !important;
    }
}






/*Antigo Layout*/
/*
:root {
  font-size: 62.5%;
  --background-color: #f4f7fe;
  --text-color: var(--label-color-two);
  --card-background: #fff;
  --input-background: #f4f7fe;
  --button-background: #1ed760;
  --button-hover: #37e375;
  --sidebar-color: #fff;
  --submenu-color: rgba(123, 121, 121, 0.311);
  --submenu-text: var(--label-color-two);
  --card-color: #333333;
}

.left-login-image {
  max-width: 80%;
} 

.main-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  height: 100%;
  width: 100%;
}



.left-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;


  @media screen and (max-height: 768px) {
    justify-content: flex-start;
  }
}

.left-login h1 {
  color: var(--text-color);
  font-size: auto;
}

.left-login img {
  width: 70%;
  height: auto;
}

form {
  max-width: 65rem;
  height: auto;
  padding: 0 2rem;
  margin: 0 auto;


  fieldset {
    padding: 2rem;
    border: none;
    background-color: var(--card-background);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: 45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;

    @media screen and (max-height:768px) {
      height: 38rem;
    }
  }
  
}

.right-login {
  width: 100%;
  height: auto;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-login {
  font-size: 12px;
  width: 50%;
  padding: 16px 0px;
  margin-top: 25px;
  border: none;
  border-radius: 8px;
  outline: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: #292929;
  background: var(--button-background);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 15px -3px;
  cursor: pointer;
  transition: 0.5s;
}

.btn-login.show {
  background-color: #ccc;
  cursor: not-allowed;
}

.card-login {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 20px;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  border-radius: 20px;
  color: var(--text-color);
  font-weight: 800;
}

.textfield {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: 15px;
}

.textfield input {
  width: 100%;
  border: none;
  border-radius: 1rem;
  padding: 13px;
  background: var(--input-background);
  font-size: 1.8rem;
  box-shadow: var(--box-shadow);
  outline: none;
}

.textfield:nth-child(3) input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-login:hover {
  background-color: var(--button-hover);
}



.input-group {
  position: relative;
  width: 100%;
}

.passW {
  display: flex;
}

.passW div {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-background);
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.passW div button {
  background: none;
  border: none;
  width: auto;
  height: auto;
  cursor: pointer;
  outline: none;
}

.inputfiltro {
  border: solid 1.5px var(--label-color);
  border-radius: 1rem;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-color);
  transition: border 130ms cubic-bezier(0.4, 0, 0.2, 1);
}

.user-label {
  position: absolute;
  left: 15px;
  color: var(--label-color);
  pointer-events: none;
  transform: translateY(1rem);
  transition: 130ms cubic-bezier(0.4, 0, 0.2, 1);
}

.inputfiltro:focus,
input:valid {
  outline: none;
  border: 1.5px solid var(--button-background);
}

.inputfiltro:focus ~ label,
input:valid ~ label {
  transform: translateY(-50%) scale(0.8);
  background-color: var(--text-color);
  padding: 0 0.2em;
  color: var(--button-background);
  background-color: var(--input-background);
  border-radius: 1rem;
}

.inputfiltro ~ label.up {
  transform: translateY(-53%) scale(0.9);
  background-color: var(--card-background);
  border-radius: 1rem;
  width: fit-content;
  text-align: center;
  height: 2rem;
  padding: 0;
  color: var(--button-background);
}

.loader {
  width: 60px;
  display: flex;
  justify-content: space-evenly;
}

.ball {
  list-style: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
}

.ball:nth-child(1) {
  animation: bounce-1 2.1s ease-in-out infinite;
}

#rodape {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-left: 50%;
}

#rodape div span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #a19f9f;
  letter-spacing: 0.3px;
}

#rodape div {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: auto;
  flex-direction: column;
  padding-bottom: 3rem;
}

#rodape img {
  width: 10rem;
  object-fit: fill;
  height: auto;
}

@keyframes bounce-1 {
  50% {
    transform: translateY(-18px);
    background-color: var(--button-background);
  }
}

.ball:nth-child(2) {
  animation: bounce-3 2.1s ease-in-out 0.3s infinite;
}

@keyframes bounce-2 {
  50% {
    transform: translateY(-18px);
    background-color: var(--button-background);
  }
}

.ball:nth-child(3) {
  animation: bounce-3 2.1s ease-in-out 0.6s infinite;
}

@keyframes bounce-3 {
  50% {
    transform: translateY(-18px);
    background-color: var(--button-background);
  }
}

@media (max-width: 780px) {
  body {
    overflow: auto;
  }

  .main-login {
    display: flex;
    flex-direction: column;
  }

  .left-login {
    height: auto;
    width: auto;
  }

  .left-login h1 {
    font-size: 2rem;
    text-align: center;
  }

  #rodape {
    margin-left: 0;
  }

  .card-login {
    padding: 0px;
  }

  #rodape div {
    padding-top: 2rem;
  }
}

.forgot-password {
    font-weight:500;
    padding: 1rem;
    margin: -3rem;
}

.forget_password{
  color: #000;
  text-decoration: none;
  transition: all .2s ease;
}

.forget_password:hover{
  color: var(--button-background);
}

.forgot-password a:visited{
    color: #373737
}

.forgot-password:hover {
    color: var(--button-background);
    cursor: pointer;
}

.forgot-password a:hover{
    color: var(--button-background);
    cursor: pointer;
}
*/