﻿/* CSS cho trang Signup - flip card, fix text không lật ngược */
.signup-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#flip {
    display: none;
}

.cover {
    position: relative;
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    transition: transform 0.8s;
    overflow: hidden;
}

#flip:checked ~ .cover {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .front .text {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 2rem;
    }

.text-1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.text-2 {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back {
    transform: rotateY(180deg);
    background: white;
    color: #333;
}

.backImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.back .text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    margin: 1rem;
}

.forms {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    transition: transform 0.8s;
}

#flip:checked ~ .forms {
    transform: translate(-50%, -50%) rotateY(180deg);
}

.form-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backface-visibility: hidden;
}

.login-form {
    transform: rotateY(0deg);
}

.signup-form {
    transform: rotateY(180deg) scaleX(-1); /* Fix text không lật ngược */
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.input-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-box i {
        position: absolute;
        left: 1rem;
        color: #999;
        z-index: 1;
    }

    .input-box input {
        width: 100%;
        padding: 1rem 1rem 1rem 3rem;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1rem;
        transition: border-color 0.3s;
    }

        .input-box input:focus {
            outline: none;
            border-color: #667eea;
        }

.text {
    text-align: center;
    margin: 1rem 0;
    color: #666;
}

    .text a {
        color: #667eea;
        text-decoration: none;
    }

        .text a:hover {
            text-decoration: underline;
        }

.button input {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

    .button input:hover {
        opacity: 0.9;
    }

.sign-up-text {
    margin-top: 1rem;
    color: #666;
}

    .sign-up-text label {
        color: #667eea;
        cursor: pointer;
        font-weight: bold;
    }

.google-login-wrapper {
    margin-top: 1rem;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: background 0.3s;
}

    .google-login-btn:hover {
        background: #f8f9fa;
    }

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .cover {
        height: 300px;
    }

    .text-1 {
        font-size: 1.5rem;
    }

    .forms {
        max-width: 90%;
    }
}
