:root {
    /* Color Scheme */
    --primary-blue: #203f9a;
    --light-blue: #94c2da;
    --hot-pink: #e84797;
    --light-pink: #e7a0cc;
    --cream: #efe8e0;
    --medium-blue: #4e7cb2;
    --success-green: #4CAF50;
    
    /* Phone mimic variables */
    --phone-radius: 40px;
    --screen-radius: 32px;
    --bezel-color: #111;
    --bezel-width: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--cream);
    color: var(--primary-blue);
    height: 100vh;
    overflow: hidden;
    touch-action: manipulation;
}

.app-container {
    width: 375px;
    height: 812px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    border-radius: var(--screen-radius);
}

/* Screen Styles */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: none;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* Main Screen Styles */
.hero-section {
    height: 45%;
    background-color: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.content-section {
    padding: 30px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--medium-blue);
    font-weight: 400;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Form Styles */
.form-header {
    padding: 70px 25px 20px;
    text-align: center;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.form-container {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-pink);
    border-radius: 10px;
    font-size: 1rem;
    background-color: white;
    color: var(--primary-blue);
}

.input-group input:focus {
    border-color: var(--hot-pink);
    outline: none;
}

/* Button Styles */
.btn {
    padding: 18px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.login-btn {
    background-color: var(--hot-pink);
    color: white;
}

.signup-btn {
    background-color: var(--light-pink);
    color: var(--primary-blue);
    border: 2px solid var(--hot-pink);
}

.submit-btn {
    background-color: var(--hot-pink);
    color: white;
    margin-top: 20px;
}

.btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-btn {
    width: auto;
    padding: 10px 15px;
    background-color: var(--light-pink);
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--medium-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--cream);
    padding: 25px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

.reset-password-btn {
    background-color: var(--medium-blue);
    transition: background-color 0.3s;
}

.reset-password-btn.valid {
    background-color: var(--success-green);
}

/* Responsive adjustments */
@media (min-height: 813px) {
    .app-container {
        height: 812px;
        margin: calc((100vh - 812px) / 2) auto;
    }
}

@media (max-width: 374px) {
    .app-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}