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

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

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;
    flex-direction: column;

    &&::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%);
    }

    .box-reset{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .main-reset-password {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        height: 100%;
        width: 100%;

        .container{
            position: relative;
            background: linear-gradient(135deg, hsl(200, 3%, 5%), hsl(200, 3%, 15%));
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-primary);
            border-radius: 24px;
            padding: 48px 40px;
            width: 100%;
            max-width: 42rem;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transform: translateY(0);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

            @keyframes float {
                0%, 100% { transform: translate(0, 0) rotate(0deg); }
                33% { transform: translate(30px, -30px) rotate(120deg); }
                66% { transform: translate(-20px, 20px) rotate(240deg); }
            }
            

            &&:hover {
                transform: translateY(-8px);
                box-shadow: 
                    0 35px 70px rgba(0, 0, 0, 0.6),
                    0 0 0 1px rgba(255, 255, 255, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
            }

            .header {
                text-align: center;
                margin-bottom: 32px;

                .title {
                    font-size: 28px;
                    font-weight: 700;
                    background: linear-gradient(135deg, #ffffff 0%, var(--card-background) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                    margin-bottom: 8px;
                    letter-spacing: -0.5px;
                }

                .subtitle {
                    font-size: 15px;
                    color: rgba(255, 255, 255, 0.6);
                    font-weight: 400;
                    line-height: 1.5;
                }
            }

            .form-group {
                margin-bottom: 24px;
                position: relative;

                &&:last-of-type {
                    margin-bottom: 32px;
                }

                .label {
                    display: block;
                    font-size: 14px;
                    font-weight: 600;
                    color: #e6e6e6;
                    margin-bottom: 8px;
                    letter-spacing: 0.025em;
                }
            }

            

            .input-wrapper {
                position: relative;
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid rgba(100, 139, 112, 0.2);
                border-radius: 12px;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                overflow: hidden;

                &&:focus-within {
                    border-color: var(--span-green);
                    box-shadow: 
                        0 0 0 3px rgba(111, 241, 99, 0.1),
                        0 4px 12px rgba(123, 241, 99, 0.15);
                    transform: translateY(-1px);
                }

                .password-input {
                    width: 100%;
                    padding: 16px 50px 16px 16px;
                    background: transparent;
                    border: none;
                    outline: none;
                    font-size: 16px;
                    font-weight: 500;
                    color: #e6e6e6;
                    letter-spacing: 0.5px;
                    transition: all 0.2s ease;
                }

                .password-input::placeholder {
                    color: #a9aca9;
                    font-weight: 400;
                }

                 .toggle-button {
                    position: absolute;
                    right: 6px;
                    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);
                    }

                    &&:active {
                        transform: translateY(-50%) scale(0.95);
                    }
                }
            }

            .strength-indicator {
                margin-top: 12px;
                padding: 0 4px;

                .strength-bars {
                    display: flex;
                    gap: 4px;
                    margin-bottom: 8px;

                    .strength-bar {
                        height: 4px;
                        flex: 1;
                        background: rgba(146, 146, 146, 0.6);
                        border-radius: 2px;
                        transition: all 0.3s ease;

                        &&.active {
                            background: #0d8e6a;
                        }
                    }
                }

                .strength-text {
                    font-size: 12px;
                    color: rgba(255, 255, 255, 0.6);
                    font-weight: 500;
                }
            }

            .submit-button {
                width: 100%;
                background: linear-gradient(135deg, #1e4539 0%, #0d8e6a 100%);
                border: none;
                border-radius: 12px;
                padding: 16px;
                font-size: 16px;
                font-weight: 600;
                color: white;
                cursor: pointer;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
                overflow: hidden;
                letter-spacing: 0.025em;

                &&::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;
                }

                &&:hover {
                    transform: translateY(-2px);
                    box-shadow: 
                        0 12px 24px #1e4539,
                        0 0 0 1px rgba(255, 255, 255, 0.1);

                    &&::before {
                        left: 100%;
                    }
                }

                &&:active {
                    transform: translateY(0);
                }

                &&:disabled {
                    background: linear-gradient(135deg, #1e4539 0%, #0d8e6a 100%);
                    opacity: .6;
                    color: #fff;
                    cursor: not-allowed;
                    transform: none;
                    box-shadow: none;
                }
            }

            /* Micro-interações e feedback visual */
            .input-wrapper.error {
                border-color: #ef4444;
                animation: shake 0.5s ease-in-out;
            }

            @keyframes shake {
                0%, 100% { transform: translateX(0); }
                25% { transform: translateX(-4px); }
                75% { transform: translateX(4px); }
            }

            .success-checkmark {
                position: absolute;
                right: 50px;
                top: 50%;
                transform: translateY(-50%);
                color: #10b981;
                font-size: 18px;
                opacity: 0;
                transition: all 0.3s ease;
            }

            .success-checkmark.show {
                opacity: 1;
                transform: translateY(-50%) scale(1.1);
            }
        }

        .result-container {
            background: linear-gradient(135deg, hsl(200, 3%, 5%), hsl(200, 3%, 15%));
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 48px 40px;
            width: 100%;
            max-width: 420px;
            position: relative;
            transform: translateY(0);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            animation: slideIn 0.6s ease-out forwards;
        }

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

        .result-container:hover {
            transform: translateY(-8px);
        }

        .success {
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(16, 185, 129, 0.1),
                inset 0 1px 0 rgba(16, 185, 129, 0.1);
        }

        .success:hover {
            box-shadow: 
                0 35px 70px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(16, 185, 129, 0.15),
                inset 0 1px 0 rgba(16, 185, 129, 0.15);
        }

        .expired {
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(245, 158, 11, 0.1),
                inset 0 1px 0 rgba(245, 158, 11, 0.1);
        }

        .expired:hover {
            box-shadow: 
                0 35px 70px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(245, 158, 11, 0.15),
                inset 0 1px 0 rgba(245, 158, 11, 0.15);
        }

        .error {
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(239, 68, 68, 0.1),
                inset 0 1px 0 rgba(239, 68, 68, 0.1);
        }

        .error:hover {
            box-shadow: 
                0 35px 70px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(239, 68, 68, 0.15),
                inset 0 1px 0 rgba(239, 68, 68, 0.15);
        }

        .icon-container {
            width: 80px;
            height: 80px;
            margin: 0 auto 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .success .icon-container {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
            border: 2px solid rgba(16, 185, 129, 0.3);
            animation: successPulse 2s ease-in-out infinite;
        }

        .expired .icon-container {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
            border: 2px solid rgba(245, 158, 11, 0.3);
            animation: warningPulse 2s ease-in-out infinite;
        }

        .error .icon-container {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.3) 100%);
            border: 2px solid rgba(239, 68, 68, 0.3);
            animation: errorShake 0.8s ease-in-out;
        }

        @keyframes successPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
        }

        @keyframes warningPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
        }

        @keyframes errorShake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }

        .icon {
            font-size: 32px;
            font-weight: bold;
            z-index: 2;
        }

        .success .icon {
            color: #10b981;
            animation: checkmarkDraw 0.8s ease-out 0.3s both;
        }

        .expired .icon {
            color: #f59e0b;
            animation: fadeInScale 0.6s ease-out 0.3s both;
        }

        .error .icon {
            color: #ef4444;
            animation: fadeInScale 0.6s ease-out 0.3s both;
        }

        @keyframes checkmarkDraw {
            0% { transform: scale(0) rotate(180deg); opacity: 0; }
            50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }

        @keyframes fadeInScale {
            0% { transform: scale(0); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        .title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
            animation: fadeInUp 0.6s ease-out 0.5s both;
        }

        .success .title {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .expired .title {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .error .title {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .message {
            font-size: 16px;
            color: #94a3b8;
            line-height: 1.6;
            margin-bottom: 32px;
            animation: fadeInUp 0.6s ease-out 0.7s both;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 0.6s ease-out 0.9s both;
        }

        .primary-button {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border: none;
            border-radius: 12px;
            padding: 14px 28px;
            font-size: 15px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            letter-spacing: 0.025em;
            min-width: 140px;
        }

        .primary-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;
        }

        .primary-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
        }

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

        .primary-button:active {
            transform: translateY(0);
        }

        .secondary-button {
            background: rgba(100, 116, 139, 0.1);
            border: 1px solid rgba(100, 116, 139, 0.2);
            border-radius: 12px;
            padding: 14px 28px;
            font-size: 15px;
            font-weight: 500;
            color: #e2e8f0;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
        }

        .secondary-button:hover {
            background: rgba(100, 116, 139, 0.2);
            border-color: rgba(100, 116, 139, 0.3);
            transform: translateY(-1px);
        }

        /* Estados específicos dos botões */
        .success .primary-button {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .success .primary-button:hover {
            box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
        }

        .expired .primary-button {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        .expired .primary-button:hover {
            box-shadow: 0 12px 24px rgba(245, 158, 11, 0.4);
        }

        .error .primary-button {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        .error .primary-button:hover {
            box-shadow: 0 12px 24px rgba(239, 68, 68, 0.4);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
}



form {
    max-width: 55rem;
    height: auto;
    padding: 0 2rem;
    margin: 0 auto;
    align-items: center;
    justify-content: center;

    fieldset {
        width: 100%;
        max-width: 1200px;
        max-height: min(90vh, 800px);
        min-height: 540px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        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;
        padding: 2rem;

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

h3 {
    color: #ffffff9e;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 400;
}

.send-button {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, #1e4539 0%, #0d8e6a 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.5rem;
    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);

    &&::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;
    }

    &&:hover {
        transform: translateY(-2px);
    }
}

.content {
    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: 600;
}

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


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

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;

    .user-label {
        font-size: 1.3rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding-left: 8px;
    }
    .inputfiltro{
        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: 1.5rem;
        font-weight: 400;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        outline: none;

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

        &&:focus {
            background: rgba(255, 255, 255, 0.08);
        }

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

.sweetalert-lg {
    font-size: 14px !important;
}

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

.inputfiltro {
    border: solid 1.5px var(--label-color);
    border-radius: var(--b-radius-two);
    background: none;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: border 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: var(--b-radius-two);
}

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

#rodape {
    height: auto;
    display: grid;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#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;
}

.custom-swal-popup {
    width: 400px; /* Ajuste o valor conforme desejado */
    height: auto; /* Pode alterar se quiser uma altura fixa */
    padding: 20px; /* Ajuste o padding interno */
    font-size: 15px; /* Ajuste o tamanho do texto */
}

.red2 {
    margin-bottom: -10px;
}

.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;
}

.box-reset.return{
    justify-content:center;
}

.return h3{
    font-size: 2.5rem;
}

.return p {
    font-weight: 400;
}

.return h3, p {
    text-align: center;
}

.return-fieldset {
    padding: 1rem;
    border: none;
    background-color: var(--card-background);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    /*box-shadow: var(--label-color-two)00001 0px 2px 4px, var(--label-color-two)0001a 0px 7px 13px -3px, var(--label-color-two)00014 0px -3px 0px inset;*/
    height: 45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;

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

.return .content {
    gap: 20px;
    padding: 45px;
}

/*Aguarde*/
.overlayy {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000073;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .overlayy.show {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #00000073;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }
/*Aguarde*/
