* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #4b79a1, #283e51);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MAIN CONTAINER */
.container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    width: 850px;
    max-width: 100%;
    min-height: 500px;
}

/* FORM CONTAINERS */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

/* FORM STYLING */
form {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 50px;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

form h1 {
    margin-bottom: 20px;
}

form input {
    background: #eee;
    border: none;
    padding: 12px;
    margin: 8px 0;
    width: 80%;
    border-radius: 8px;
}

form button {
    border: none;
    padding: 12px 40px;
    margin-top: 15px;
    border-radius: 20px;
    background: #4b79a1;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #35516b;
}

/* OVERLAY CONTAINER */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

/* OVERLAY BACKGROUND */
.overlay {
    background: linear-gradient(135deg, #4b79a1, #283e51);
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

/* OVERLAY PANELS — FIXED + CENTERED */
.overlay-panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical centering */
    align-items: center;       /* horizontal centering */
    text-align: center;
    padding: 40px;
}

/* LEFT PANEL */
.overlay-left {
    left: 0;
}

/* RIGHT PANEL */
.overlay-right {
    right: 0;
}

/* OPTIONAL POLISH */
.overlay-panel h1 {
    margin-bottom: 10px;
}

.overlay-panel p {
    margin-bottom: 20px;
}

/* GHOST BUTTON */
.ghost {
    background: transparent;
    border: 2px solid #fff;
    padding: 12px 40px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.ghost:hover {
    background: rgba(255,255,255,0.2);
}

/* Connect Apps page */

/* Full-screen gradient background */
.overlay-bg {
    background: linear-gradient(135deg, #4b79a1, #283e51);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating glass card */
.connect-panel {
    position: relative;
    margin: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: rgba(255, 255, 255, 0.08);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);

    max-width: 500px;
    color: #fff;
}

/* Google Fit section */
.app-card-simple {
    margin-top: 30px;
}

.app-card-simple h2 {
    margin-bottom: 10px;
    color: #fff;
}

.app-card-simple p {
    margin-bottom: 20px;
    color: #fff;
}

/* Ghost-style buttons */
.ghost {
    background: transparent;
    border: 2px solid #fff;
    padding: 12px 40px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    margin: 10px 0;
    transition: 0.3s;
}

.ghost:hover {
    background: rgba(255,255,255,0.2);
}
