*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}
body { 
    width: 100%;
    min-height: 100vh; 
    padding-bottom: 50px; 
    margin: 0;
    padding: 0;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 70px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-sizing: border-box;
    overflow: hidden;
}
.navbar a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px;
}
.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.5s;
}
.navbar a:hover::after{
    transform-origin: left;
    transform: scaleX(1);
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.barbershop {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 3px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.logo-icon {
    height: 32px;
    width: auto;
}
.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}
.container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}
.logo-icon {
    height: 32px;
    width: auto;
    margin-right: 10px;
}
.navbar .btn-login{
    width: 140px;
    height: 45px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5%;
}
.navbar .btn-login:hover{
    background: #fff;
    color: #162938;
}

.hero-overlay h1{
    font-family: 'Trajan Pro', serif;
    font-size: 6rem;    
    font-weight: bold;
    color: #DC143C;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); 
    margin: 0 0 20px 0;
}

.hero-overlay p,
.hero-overlay div {
    color: #fff;
    font-size: 1.3rem;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-us {
    position: relative;
    height: auto;
    min-height: 60vh;
    background: url("/icons/backgrounds/about-us.jpg") no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}
.about-us img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-us h2 {
    position: relative;
    text-align: center;
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    margin: 0 0 30px 0;
}
.about-us p{
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    padding: 0 20px;
}
.wrapper{
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 400px;
    height: 440px;
    background: white;
    border: 2px solid rgba(255,255,255, .5);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: scale(0);
    transition: transform .35s ease;
}
.wrapper.active-popup{
    transform: scale(1) translate(-50%, -30%); 
}
.wrapper .frm-box{
    width: 100%;
    padding: 40px;
}
.wrapper.active .frm-box.login{
    transform: translateX(0); 
    top: 30px;
}
.wrapper .frm-box.register{
    position: absolute;
    transform: translateX(400px);
    transition: none;
    opacity: 1;
    pointer-events: auto;
}
.wrapper.active .frm-box.register{
    transition: transform .18s ease;
    transform: translateX(0);
}
.wrapper.active-user.active .frm-box.login{
    transform: translateX(-400px);
}
.wrapper .icon-close{
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 45px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
    font-size: 2em;
}
.frm-box h2{
    font-size: 2em;
    color: #162938;
    text-align: center;
}
.wrapper .frm-box.forgot-password {
    position: absolute;
    width: 400px;
    height: 500px; 
    transform: translateX(400px);
    transition: none;
    background: #fff;  
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 30px;
}
.wrapper .frm-box.forgot-password h2{
    text-align: center;
    margin-bottom: 30px;
}

.wrapper .frm-box.forgot-password .input-box,
.wrapper .frm-box.forgot-password .btn-send-code,
.wrapper .frm-box.forgot-password .back-to-login {
    width: 100%;            
    margin-bottom: 20px;     
}
.wrapper.active-forgot .frm-box.forgot-password {
    transition: transform .18s ease;
    transform: translateX(0);   
}
.wrapper.active-forgot .frm-box.login {
    transform: translateX(-400px);
}
.wrapper.choice-active {
    width: 400px ;
    height: 250px;
    transition: opacity 0.3s ease;
    opacity: 1;
}
.wrapper.choice-active .frm-box {
    padding: 18px 28px;
}
.wrapper.choice-active .frm-box.user h2 {
    text-align: left;
    margin: 0 0 18px 0;
    font-size: 1.1rem;  
}
.wrapper .frm-box.user {
    transition: transform .18s ease;
    transform: translateX(0);
}
.wrapper.active-user .frm-box.user {
    transform: translateX(-400px);
}

.wrapper .frm-box.login {
    position: absolute;
    transform: translateX(400px);
}
.wrapper.active-user .frm-box.login {
    transition: transform .18s ease;
    transform: translateX(0);
}
.btn-login-user,
.btn-login-admin {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login-user {
    background: #fff;
    color: #162938;
    border: 1px solid #ccc;
}
.btn-login-user:hover {
    border-color: #0078d4;
    color: #0078d4;
}
.btn-login-admin {
    background: #0078d4;
    color: #fff;
}
.btn-login-admin:hover {
    background: #008000;
}
.input-box{
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;
}
.input-box label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #162938;
    font-weight: 500;
    pointer-events: none;
}
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label{
    top: -2px; 
}
.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
}
.input-box .icon{
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #162938;
    top: 10px
}
.toggle-password{
    position: absolute;
    right:35px;
    top:43%;
    transform: translateY(-10%);
    cursor: pointer;
    font-size: 1.2em;
    color: #162938;
    transition: color 0.3s ease;
}
.toggle-password:hover{
    color:#000;
}
.remember-forgot{
    font-size: .9em;
    color: #162938;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}
.remember-forgot label input{
    accent-color: #162938;
    margin-right: 3px;
}
.remember-forgot a{
    color: #162938;
    text-decoration: none;
}
.remember-forgot a:hover{
    text-decoration: underline;
}
.forgot-password {
    background: #fff;  
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-send-code {
    width: 100%;
    height: 50px;
    margin-top: 20px;
    border: none;
    border-radius: 70px;      
    background: #0078d4;       
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-send-code:hover {
    background: #b01030;     
}
.btn{
    width: 100%;
    height: 45px;
    background-color: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
}
.register{
    font-size: .9em;
    color: #162938;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}
.register p a{
    color: #162938;
    text-decoration: none;
    font-weight: 600;
}
.register p a:hover{
    text-decoration: underline;
}
.wrapper.active-admin{
    transition: opacity 0.3s ease;
    opacity: 1;
}
.wrapper .frm-box.admin {
    position: absolute;
    height: 500px;
    width: 400px;
    transform: translateX(400px);
    background-color: white; 
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 30px;
    box-sizing: border-box;
    transition: none;
}
.wrapper.active-admin .frm-box.admin {
    transform: translateX(0);
}
.wrapper.active-admin .frm-box.login {
    transform: translateX(-400px);
}
.wrapper.active-admin .choice-active {
    opacity: 0; 
    pointer-events: none; 
}
.wrapper .frm-box.admin .input-box input,
.wrapper .frm-box.admin .btn,
.wrapper .frm-box.admin .btn-login-admin {
    width: 100%;
    box-sizing: border-box;
}
html.lock-scroll,
body.lock-scroll {
    overflow: hidden;
    height: 100%;
}
.tracking-in-contract-bck-top {
	-webkit-animation: tracking-in-contract-bck-top 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	animation: tracking-in-contract-bck-top 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@-webkit-keyframes tracking-in-contract-bck-top {
    0% {
        letter-spacing: 1em;
        -webkit-transform: translateZ(400px) translateY(-300px);
        transform: translateZ(400px) translateY(-300px);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        -webkit-transform: translateZ(0) translateY(0);
        transform: translateZ(0) translateY(0);
        opacity: 1;
    }
}
@keyframes tracking-in-contract-bck-top {
    0% {
        letter-spacing: 1em;
        -webkit-transform: translateZ(400px) translateY(-300px);
        transform: translateZ(400px) translateY(-300px);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        -webkit-transform: translateZ(0) translateY(0);
        transform: translateZ(0) translateY(0);
        opacity: 1;
    }
}
.frm-box-verify-code {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 400px;
    height: 440px;
    background: white;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: scale(0);
    transition: transform 0.35s ease;
    display: none;
}

.frm-box-verify-code.active {
    display: block;
    transform: scale(1) translate(-50%, -30%);
}

.frm-box-verify-code h2 {
    font-size: 2em;
    color: #162938;
    text-align: center;
    margin-bottom: 20px;
}

.frm-box-verify-code .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.frm-box-verify-code .input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #162938;
    font-weight: 500;
    pointer-events: none;
}

.frm-box-verify-code .input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    border-bottom: 2px solid #162938;
}

.frm-box-verify-code .input-box input:focus ~ label,
.frm-box-verify-code .input-box input:not(:placeholder-shown) ~ label {
    top: -2px;
}

.frm-box-verify-code button.btn {
    width: 100%;
    height: 45px;
    background-color: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.frm-box-verify-code button.btn:hover {
    background-color: #0078d4;
}

.frm-box-verify-code .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #162938;
    top: 10px;
}

.frm-box-verify-code .toggle-password {
    position: absolute;
    right: 35px;
    top: 43%;
    transform: translateY(-10%);
    cursor: pointer;
    font-size: 1.2em;
    color: #162938;
    transition: color 0.3s ease;
}

.frm-box-verify-code .toggle-password:hover {
    color: #000;
}
.btn-login-user, .btn-login-admin {
    cursor: pointer;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ffcdd2;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #c8e6c9;
}
main {
    height: 100vh;
    background-color: white;
    padding: 20px;
}
html, body{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* RESPONSIVE STYLES START HERE */

/* Tablet and smaller laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 30px;
        height: 60px;
    }
    
    .navbar a {
        font-size: 1em;
        margin: 0 8px;
    }
    
    .barbershop {
        font-size: 20px;
    }
    
    .logo-icon {
        height: 28px;
    }
    
    .navbar .btn-login {
        width: 120px;
        height: 40px;
        font-size: 1em;
        margin-left: 20px;
    }
    
    .hero-overlay h1 {
        font-size: 4.5rem;
        padding: 0 20px;
    }
    
    .wrapper {
        width: 90%;
        max-width: 400px;
    }
}

/* Tablet portrait and large phones (481px - 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        height: auto;
        min-height: auto;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo-title {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        order: 1;
    }
    
    .navbar .home,
    .navbar .about,
    .navbar .services,
    .navbar .contact {
        font-size: 0.85em;
        margin: 5px 5px;
        order: 2;
    }
    
    .navbar .btn-login {
        width: 100%;
        max-width: 150px;
        height: 35px;
        font-size: 0.85em;
        margin: 10px auto 0;
        order: 3;
    }
    
    .hero-overlay {
        padding-top: 200px;
    }
    
    .hero-overlay h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .about-us {
        height: auto;
        min-height: 50vh;
        padding: 40px 20px;
    }
    
    .about-us h2 {
        position: relative;
        top: 0;
        transform: none;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .about-us p {
        font-size: 1.5rem !important;
        margin: 20px auto;
        max-width: 90%;
        line-height: 1.8;
        padding: 0 25px;
    }

    .wrapper {
        width: 90%;
        max-width: 380px;
        height: auto;
        min-height: 440px;
        top: 50%;
        transform: translate(-50%, -50%) scale(0);
    }
    
    .wrapper.active-popup {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .wrapper .frm-box {
        padding: 30px;
    }
    
    .wrapper .frm-box.forgot-password {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
    
    .wrapper .frm-box.admin {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
}

/* Mobile phones (320px - 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        height: auto;
    }
    
    .logo-title {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        order: 1;
    }
    
    .barbershop {
        font-size: 16px;
    }
    
    .logo-icon {
        height: 24px;
    }
    
    .navbar .home,
    .navbar .about,
    .navbar .services,
    .navbar .contact {
        font-size: 0.75em;
        margin: 3px 4px;
        order: 2;
        flex: 0 1 auto;
    }
    
    .navbar a::after {
        height: 2px;
        bottom: -3px;
    }
    
    .navbar .btn-login {
        width: 100%;
        max-width: 120px;
        height: 32px;
        font-size: 0.8em;
        margin: 8px auto 0;
        order: 3;
    }
    
    .hero-overlay {
        padding-top: 150px;
        height: 100vh;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
        padding: 0 15px;
        line-height: 1.3;
    }
    
    .about-us {
        height: auto;
        min-height: 70vh;
        padding: 60px 20px;
    }
    
    .about-us h2 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .about-us p {
        font-size: 1.3rem !important;
        line-height: 1.7;
        max-width: 95%;
        padding: 0 20px;
    }
    
    .wrapper {
        width: 95%;
        max-width: 350px;
        padding: 0;
    }
    
    .wrapper .frm-box {
        padding: 25px 20px;
    }
    
    .frm-box h2 {
        font-size: 1.5em;
    }
    
    .input-box {
        height: 45px;
        margin: 25px 0;
    }
    
    .input-box label {
        font-size: 0.9em;
    }
    
    .input-box input {
        font-size: 0.9em;
    }
    
    .btn {
        height: 40px;
        font-size: 0.9em;
    }
    
    .btn-login-user,
    .btn-login-admin {
        padding: 12px;
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    .remember-forgot {
        font-size: 0.8em;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .register {
        font-size: 0.8em;
    }
    
    .wrapper .icon-close {
        width: 50px;
        height: 40px;
        font-size: 1.5em;
    }
}

/* Small mobile phones (max-width: 360px) */
@media (max-width: 360px) {
    .navbar {
        padding: 8px 10px;
    }
    
    .barbershop {
        font-size: 14px;
    }
    
    .logo-icon {
        height: 20px;
    }
    
    .navbar .home,
    .navbar .about,
    .navbar .services,
    .navbar .contact {
        font-size: 0.7em;
        margin: 2px 3px;
    }
    
    .hero-overlay h1 {
        font-size: 1.8rem;
    }
    
    .about-us h2 {
        font-size: 1.8rem;
    }
    
    .about-us p {
        font-size: 0.95rem;
    }
    
    .wrapper {
        width: 98%;
        max-width: 320px;
    }
    
    .wrapper .frm-box {
        padding: 20px 15px;
    }
    
    .frm-box h2 {
        font-size: 1.3em;
    }
}

/* Landscape mode for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .navbar {
        height: auto;
        min-height: auto;
        padding: 8px 20px;
    }
    
    .logo-title {
        width: auto;
        margin-bottom: 0;
    }
    
    .navbar .home,
    .navbar .about,
    .navbar .services,
    .navbar .contact {
        font-size: 0.8em;
        margin: 0 5px;
    }
    
    .navbar .btn-login {
        width: 80px;
        height: 30px;
        font-size: 0.75em;
        margin-left: 10px;
    }
    
    .hero-overlay {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .wrapper {
        top: 50%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .wrapper .frm-box {
        padding: 20px;
    }
}

/* iPad Pro and large tablets (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .navbar {
        padding: 0 40px;
    }
    
    .hero-overlay h1 {
        font-size: 5rem;
    }
    
    .about-us p {
        font-size: 1.4rem;
        max-width: 900px;
    }
}

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.container,
.hero-overlay,
.about-us {
    max-width: 100vw;
    overflow-x: hidden;
}