@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f0f12;
    --primary: #6d28d9;
    --primary-hover: #7c3aed;
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #c4c3ca;
    --gradient-main: linear-gradient(135deg, #6d28d9 0%, #d946ef 100%);
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(109, 40, 217, 0.2) 0%, rgba(0, 0, 0, 0) 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.2) 0%, rgba(0, 0, 0, 0) 40%);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

a {
    cursor: pointer;
    transition: all 200ms linear;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.back-home:hover {
    color: var(--text-main);
}

.link {
    color: var(--text-muted);
}

.link:hover {
    color: var(--text-main);
}

p {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.7;
}

h4 {
    font-weight: 600;
    color: var(--text-main);
}

h6 span {
    padding: 0 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.section {
    position: relative;
    width: 100%;
    display: block;
}

.container {
    perspective: 1000px;
    /* Essential for 3D */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 3D Card Setup */
.card-3d-wrap {
    position: relative;
    width: 440px;
    max-width: 100%;
    height: 500px;
    /* Fixed height for flip */
    transform-style: preserve-3d;
    perspective: 1000px;
    margin-top: 60px;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transition: transform 700ms 400ms ease-out;
    /* Smooth flip */
}

/* Flip State */
.card-3d-wrapper.flip {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat.svg');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 300%;
    position: absolute;
    border-radius: 20px;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Hide back when flipped */
    box-shadow: 0 0px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-back {
    transform: rotateY(180deg);
}

.center-wrap {
    position: absolute;
    width: 100%;
    padding: 0 35px;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 35px) perspective(100px);
    /* Text pops out 3D */
    z-index: 20;
    display: block;
}


/* Input Styles */
.form-group {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}

.form-style {
    padding: 13px 20px;
    padding-left: 55px;
    height: 48px;
    width: 100%;
    font-weight: 500;
    border-radius: 4px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.5px;
    outline: none;
    color: var(--text-main);
    background-color: #1f2029;
    border: none;
    transition: all 200ms linear;
    box-shadow: 0 4px 8px 0 rgba(21, 21, 21, .2);
}

.form-style:focus,
.form-style:active {
    border: none;
    outline: none;
    box-shadow: 0 4px 8px 0 rgba(21, 21, 21, .2);
    background-color: #18181b;
}

.input-icon {
    position: absolute;
    top: 0;
    left: 18px;
    height: 48px;
    font-size: 24px;
    line-height: 48px;
    text-align: left;
    color: var(--accent);
    transition: all 200ms linear;
}

.form-group input:-ms-input-placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 200ms linear;
}

.form-group input::-moz-placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 200ms linear;
}

.form-group input:-moz-placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 200ms linear;
}

.form-group input::-webkit-input-placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 200ms linear;
}

.form-group input:focus:-ms-input-placeholder {
    opacity: 0;
    transition: all 200ms linear;
}

.form-group input:focus::-moz-placeholder {
    opacity: 0;
    transition: all 200ms linear;
}

.form-group input:focus:-moz-placeholder {
    opacity: 0;
    transition: all 200ms linear;
}

.form-group input:focus::-webkit-input-placeholder {
    opacity: 0;
    transition: all 200ms linear;
}

/* Button */
.btn {
    border-radius: 50px;
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 200ms linear;
    padding: 0 30px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    background-color: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 8px 24px 0 rgba(255, 235, 167, .2);
}

.btn:active,
.btn:focus {
    background-color: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 8px 24px 0 rgba(16, 39, 112, .2);
}

.btn:hover {
    background-color: var(--text-main);
    color: var(--accent);
    box-shadow: 0 8px 24px 0 rgba(16, 39, 112, .2);
}

/* Utilities */
.mb-4 {
    margin-bottom: 24px;
}

.pb-3 {
    padding-bottom: 16px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* Switch Toggle Styling */
.switch-btn {
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.switch-btn:hover {
    color: var(--primary-hover);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}