/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --baby-pink: #FFB6C1;
    --red: #FF0000;
    --dark-pink: #FF69B4;
    --white: #FFFFFF;
    --light-pink: #FFF0F5;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ===========================
   Login Page
   =========================== */
.login-page {
    background: linear-gradient(135deg, var(--baby-pink) 0%, var(--dark-pink) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
}

.app-title {
    font-size: 32px;
    color: var(--red);
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: var(--dark-pink);
    font-size: 16px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--baby-pink);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--red);
}

.turnstile-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--red) 0%, var(--dark-pink) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button[type="submit"]:disabled:hover {
    transform: none;
}

.btn-loading {
    display: none;
}

.error-message {
    color: var(--red);
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
}

/* ===========================
   App Page
   =========================== */
.app-page {
    background: var(--baby-pink);
    min-height: 100vh;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.photo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.photo-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(255,182,193,0.5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.love-message {
    font-size: 48px;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.notification-prompt {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
}

.notification-prompt p {
    color: var(--red);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.notification-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--red) 0%, var(--dark-pink) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.notification-btn:hover {
    transform: translateY(-2px);
}

.notification-status {
    color: var(--white);
    font-size: 14px;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 480px) {
    .app-title {
        font-size: 28px;
    }
    
    .love-message {
        font-size: 36px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}

/* ===========================
   iOS Safe Area
   =========================== */
@supports (padding: max(0px)) {
    .overlay {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
