@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e67e22 0%, #a27b4b 100%);
    background: linear-gradient(to right, #d35400, #e67e22, #f39c12);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-container {
    perspective: 1000px;
    width: 100%;
    max-width: 548px;
}

.auth-card {
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    min-height: 600px;
    height: 90vh;
}

.auth-card.flipped {
    transform: rotateY(180deg);
}

.auth-front,
.auth-back {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-back {
    transform: rotateY(180deg);
}

.auth-front .header-strip,
.auth-back .header-strip {
    width: 100%;
    height: 8px;
}

.auth-front .header-strip {
    background: linear-gradient(to right, #a855f7, #4f46e5);
}

.auth-back .header-strip {
    background: linear-gradient(to right, #ec4899, #f43f5e);
}

.auth-front .content,
.auth-back .content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: auto;
    overflow: hidden;

    form {
        width: 100%;
    }
}

.company {
    text-align: center;
    margin-bottom: 1.5rem;

    img {
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1),
            inset 0px 2px 5px rgba(255, 255, 255, 0.7);
        border-radius: 10px;
        background-color: var(--primary-color);
        height: 60px;
        width: auto;
        /*  max-width: 65px; */
        padding: 8px;
    }
}

.text-center {
    /*  text-align: center; */
    margin-bottom: 20px;

    h1 {
        font-size: 1.56rem;
        font-weight: 700;
        color: #1f2937;
    }

    p {
        font-size: .9REM;
        color: #6b7280;
        margin-top: 0px;
    }
}


.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.reg-mmssg-display {
    display: flex;
    align-items: center;
    color: var(--text-color);
    width: fit-content;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid lightgrey;
    margin: auto;
    margin-bottom: 1.2rem;
    gap: 5px;

    a {
        color: var(--blue);
        text-decoration: underline;
    }

    p {
        font-size: .75rem;
        flex: 1;
    }

    i {
        font-size: 1.2rem;
        color: var(--text-color);
    }

}

.reg-mmssg-display.error {
    border: 1px solid var(--red);
    align-items: center;

    i {
        color: var(--red);
    }
}

.reg-mmssg-display.success {

    i {
        color: var(--green);
    }
}

.reg-mmssg-display.info {

    i {
        color: var(--yellow);
    }
}


.checkbox-group {
    display: flex;
    align-items: center;

    label {
        margin-left: 8px;
        font-size: 14px;
        color: #374151;
    }
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    accent-color: #4f46e5;
}

.auth-back input[type="checkbox"] {
    accent-color: #ec4899;
}

a {
    font-size: 14px;
    color: #4f46e5;
    text-decoration: none;
}

a:hover {
    color: #4338ca;
}

.auth-back a {
    color: #ec4899;
}

.auth-back a:hover {
    color: #db2777;
}

button.submit-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid white;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-front button.submit-btn {
    background: linear-gradient(to right, #e67e22, #f39c12);
}

.auth-back button.submit-btn {
    background: linear-gradient(to right, #f39c12, #e67e22);
}

.auth-front button.submit-btn:hover,
.auth-back button.submit-btn:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.divider {
    position: relative;
    margin-top: 24px;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #d1d5db;
}

.divider span {
    position: relative;
    padding: 0 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f9fafb;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 18px;
}

.text-link {
    margin-top: 24px;
    text-align: center;
    color: #4b5563;
}

.text-link span {
    color: #4f46e5;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

.text-link span:hover {
    color: #4338ca;
}

.auth-back .text-link span {
    color: #4338ca;
}

.auth-back .text-link span:hover {
    color: #4338ca;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.help-icon {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: bounce-slow 3s infinite;
}

.help-icon i {
    color: var(--primary-color);
    font-size: 20px;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {

    .auth-front,
    .auth-back {
        padding: 15px;
    }
}