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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #c9b8a0 0%, #b8a68f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.left-section {
    flex: 1;
    color: #4a3f35;
}

.left-section h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #6b5d52;
}

.left-section h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.left-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #5a4d42;
    margin-bottom: 30px;
}

.image-container {
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid #8b7355;
    border-radius: 8px;
    padding: 40px;
    overflow: visible;
    position: relative;
    height: 450px;
}

.box-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cardboard-box {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 240px;
    background: linear-gradient(135deg, #d4a574 0%, #c9965f 50%, #b8854e 100%);
    border: 3px solid #8b6f47;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1;
}

.cardboard-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #8b6f47;
}

.cardboard-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8b6f47;
}

.box-flap {
    position: absolute;
    top: 0;
    width: 50%;
    height: 60px;
    background: linear-gradient(180deg, #c9965f 0%, #b8854e 100%);
    border: 2px solid #8b6f47;
    transform-origin: bottom;
}

.flap-left {
    left: 0;
    border-radius: 4px 0 0 0;
    animation: flapOpen 3s ease-in-out infinite;
}

.flap-right {
    right: 0;
    border-radius: 0 4px 0 0;
    animation: flapOpen 3s ease-in-out infinite;
    animation-delay: 0.1s;
}

@keyframes flapOpen {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-120deg);
    }
}

.book-in-box {
    position: absolute;
    width: 70px;
    height: 110px;
    border-radius: 3px;
    overflow: hidden;
    border: 2px solid #8b7355;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.book-in-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-1 {
    bottom: 100px;
    left: calc(50% - 100px);
    transform: rotate(-8deg);
    animation: bookInBox1 4s ease-in-out infinite;
}

.book-2 {
    bottom: 110px;
    left: calc(50% - 30px);
    transform: rotate(5deg);
    animation: bookInBox2 4.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

.book-3 {
    bottom: 105px;
    left: calc(50% + 40px);
    transform: rotate(-3deg);
    animation: bookInBox3 4.2s ease-in-out infinite;
    animation-delay: 0.6s;
}

.book-4 {
    bottom: 95px;
    left: calc(50% - 65px);
    transform: rotate(10deg);
    animation: bookInBox4 4.8s ease-in-out infinite;
    animation-delay: 0.9s;
}

@keyframes bookInBox1 {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes bookInBox2 {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

@keyframes bookInBox3 {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-18px) rotate(-6deg);
    }
}

@keyframes bookInBox4 {
    0%, 100% {
        transform: translateY(0) rotate(10deg);
    }
    50% {
        transform: translateY(-12px) rotate(13deg);
    }
}

.right-section {
    flex: 0 0 450px;
    background: #f5f1ed;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.logo h2 {
    font-size: 24px;
    font-weight: 600;
    color: #3a3a3a;
}

.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
    margin-bottom: 8px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d4c4b0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #8b7355;
}

input::placeholder {
    color: #b8b8b8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: #3a3a3a;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #5a4a3a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #4a3a2a;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d4c4b0;
}

.divider span {
    padding: 0 15px;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #d4c4b0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.google-btn:hover {
    background: #f9f9f9;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 20px;
}

.signup-link a {
    color: #3a3a3a;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #d4c4b0;
}

.footer-links a {
    font-size: 12px;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3a3a3a;
}

@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }

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

    .left-section h1 {
        font-size: 36px;
    }

    .right-section {
        flex: 1;
        width: 100%;
        max-width: 450px;
    }
}
