/*
==============================================================================
UVA Student Marketplace - Login Page Styles
==============================================================================
Description: 3D flip card authentication interface with dark theme
             Styles for Sign In/Sign Up toggle animation

Source/Attribution:
- Original design: "Log In / Sign Up - pure css - #12" by Ivan Grozdic
  https://codepen.io/ig_design/pen/KKVQpVP
- Modified for: UVA color scheme (Navy #232D4B, Orange #E57200)
                Dark mode optimization
                Django template integration
- Date: October 27th, 2025

Dependencies:
- Google Fonts: Poppins (400, 500, 600, 700, 800, 900)
- Unicons: v4.0.0 (icon font)
==============================================================================
*/


/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

.full-height {
    min-height: 100vh;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.justify-content-center {
    justify-content: center;
}

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

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Spacing Utilities */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.pt-sm-2 {
    padding-top: 1rem;
}

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

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

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

.mb-4 {
    margin-bottom: 20px;
}

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

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

/* Toggle Switch (Checkbox) */
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

.checkbox:checked + label,
.checkbox:not(:checked) + label {
    position: relative;
    display: block;
    text-align: center;
    width: 60px;
    height: 16px;
    border-radius: 8px;
    padding: 0;
    margin: 10px auto;
    cursor: pointer;
    background-color: #3a3a3a;
}

.checkbox:checked + label i,
.checkbox:not(:checked) + label i {
    position: absolute;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #E57200;
    background-color: #232D4B;
    z-index: 20;
    top: -10px;
    line-height: 36px;
    text-align: center;
    font-size: 24px;
    transition: left 0.5s ease;
}
/* Left Side - Welcome */
.checkbox:not(:checked) + label i {
    left: -10px;
    animation: spin-clockwise-to-nw 0.5s ease forwards;
}
/* Right side - Get Started */
.checkbox:checked + label i {
    left: 34px;  
    animation: spin-clockwise-to-ne 0.5s ease forwards;
}

@keyframes spin-clockwise-to-ne {
    0% {
        transform: rotate(-135deg);
    }
    100% {
        transform: rotate(315deg);
    }
}

@keyframes spin-clockwise-to-nw {
    0% {
        transform: rotate(315deg); 
    }
    100% {
        transform: rotate(585deg);  
    }
}
/* 3D Card Container */
.card-3d-wrap {
    position: relative;
    width: 900px;
    max-width: 95%;
    height: 500px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    perspective: 1200px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: 5%;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;    
    top: 0;
    left: 0;  
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: all 600ms ease-out; 
}

/* Card Sides */
.card-front, .card-back {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    position: absolute;
    border-radius: 6px;
    left: 0;
    top: 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid #333;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,.4);
}

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

/* Flip Animation */
.checkbox:checked ~ .card-3d-wrap .card-3d-wrapper {
    transform: rotateY(180deg);
}

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

/* Form Elements */
.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: #e0e0e0;
    background-color: #0f0f0f;
    border: 1px solid #333;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.3);
}

.form-style:focus,
.form-style:active {
    border: 1px solid #E57200;
    outline: none;
    box-shadow: 0 4px 8px 0 rgba(229,114,0,.2);
}

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

/* Placeholder Styles */
.form-group input:-ms-input-placeholder {
    color: #c4c3ca;
    opacity: 0.7;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.form-group input::-moz-placeholder {
    color: #c4c3ca;
    opacity: 0.7;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.form-group input:-moz-placeholder {
    color: #c4c3ca;
    opacity: 0.7;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.form-group input::-webkit-input-placeholder {
    color: #c4c3ca;
    opacity: 0.7;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

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

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

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

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

/* Buttons */
.btn {  
    border-radius: 4px;
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
    padding: 0 30px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    text-align: center;
    border: none;
    background-color: #E57200;
    color: #ffffff;
    box-shadow: 0 4px 12px 0 rgba(229,114,0,.3);
    text-decoration: none;
    cursor: pointer;
}

.btn:active,
.btn:focus {  
    background-color: #ff8c1a;
    color: #ffffff;
    box-shadow: 0 6px 16px 0 rgba(229,114,0,.4);
    transform: translateY(-1px);
}

.btn:hover {  
    background-color: #ff8c1a;
    color: #ffffff;
    box-shadow: 0 6px 16px 0 rgba(229,114,0,.4);
    transform: translateY(-1px);
}

/* Logo */
.logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 100;
    transition: all 250ms linear;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo:hover {
    color: #E57200;
}

.logo img {
    height: 26px;
    width: auto;
    display: block;
}

/* UVA Logo - Left Side */
.uva-logo-right {
    position: fixed;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

/* Responsive: hide on smaller screens */
@media screen and (max-width: 1200px) {
    .uva-logo-right {
        display: none;
    }
}

/* Typography */
h4 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

h2 {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

h6 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

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

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

/* Links */
.link {
    color: #E57200;
    font-size: 13px;
    text-decoration: none;
    transition: all 200ms linear;
}

.link:hover {
    color: #FFFFFF;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .card-3d-wrap {
        width: 90%;
    }
    
    .center-wrap {
        padding: 0 20px;
    }
    
    .logo {
    font-size: 20px;
    top: 20px;
    }
}

@media screen and (max-width: 480px) {
    .card-3d-wrap {
        height: 450px;
    }
    
    h6 span {
        padding: 0 10px;
        font-size: 16px;
    }
}