@font-face {
    font-family: 'Parkinsans';
    src: url('../fonts/Parkinsans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* General Styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}

/* Dark mode scrim */
[data-theme="dark"] .background-slideshow::after {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Light mode scrim */
[data-theme="light"] .background-slideshow::after {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Background Slideshow Styling */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.background-image.active {
    opacity: 1;
}

/* Login Container */
.login-container {
    max-width: 320px;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
    animation-delay: 2s;
    margin: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.login-container h1 {
    font-family: 'Parkinsans', sans-serif;
    font-variation-settings: 'wght' 200;
    font-size: 2.5rem;
    margin: 0;
    animation: breatheText 10s ease-in-out infinite;
    text-align: center;
    white-space: nowrap;
}

.login-container .subheading {
    font-family: 'Parkinsans', sans-serif;
    font-variation-settings: 'wght' 200;
    font-size: 1rem;
    text-align: center;
    margin: 0 0 2rem 0;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Form Elements */
.input-group {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    letter-spacing: 0.1em;
}

.input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
}

/* Add these if you want to ensure identical styling for both email and password fields */
.input-group input[type="email"],
.input-group input[type="password"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

form {
    width: 100%;
}

#login-form {
    width: 100%;
    display: block;
}

#passphrase {
    display: block;
    width: 100% !important;
    max-width: none !important;
    padding: 0.75rem;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box !important;
    margin: 0;
    min-width: 0;
    text-align: center;
}

input[type="password"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
}

input[type="password"]:focus::placeholder {
    opacity: 0;
}

/* Button Styles */
.button {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.button:hover {
    transform: scale(1.05);
}

.button:active {
    transform: translateY(0);
}

/* Error Message */
.error-message {
    position: relative;
    width: 100%;
    text-align: center;
    color: var(--error-text);
    font-size: 0.875rem;
    opacity: 0;
    height: 1.25rem;
    margin: 0.5rem 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.error-message.visible {
    opacity: 1;
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes breatheText {
    0%, 100% {
        font-variation-settings: 'wght' 200;
        opacity: 0.8;
    }
    50% {
        font-variation-settings: 'wght' 800;
        opacity: 1;
    }
}

@keyframes breathe {
    0% {
        box-shadow: 0 0 0 0 var(--breathing-color);
    }
    50% {
        box-shadow: 0 0 20px 10px var(--breathing-color);
    }
    100% {
        box-shadow: 0 0 0 0 var(--breathing-color);
    }
}

.shake {
    animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    background-color: rgba(255, 0, 0, 0.1) !important;
    border-color: var(--error-text) !important;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .login-container {
        padding: 1.5rem;
        max-width: 90%;
    }

    .login-container h1 {
        font-size: 1.5rem;
    }

    input[type="password"] {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .button {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .error-message {
        font-size: 0.75rem;
        white-space: normal;
        height: auto;
        max-width: 280px;
        margin: 0.25rem auto;
        line-height: 1.2;
    }
    
    .input-group {
        margin-top: 0.25rem;
    }
} 

/* Add error state styles */
.error-message.visible + form .input-group input {
    border-color: var(--error-text);
    background-color: rgba(255, 0, 0, 0.1);
} 

/* Add these affirmation-specific styles to styles_new.css */

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: auto;
}

/* Page Wrapper */
.page-wrapper {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add class for when recent dreams are shown */
.page-wrapper.dreams-visible {
    transform: translateY(-2rem);
}

/* Affirmation Form */
.affirmation-form {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.textarea-container {
    position: relative;
    margin: 0 1rem 1.5rem 0;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Parkinsans', sans-serif;
    font-size: 1.1rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Glow Effect */
.glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.text-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Parkinsans', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 1rem;
}

.text-button:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.text-button.active {
    color: var(--text-primary);
}

/* Recent Affirmations */
.affirmations-list {
    margin-top: 2rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease,
                transform 0.4s ease,
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.affirmations-list.visible {
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

.affirmation-card {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.affirmation-card:last-child {
    margin-bottom: 0;
}

.affirmation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.affirmation-text {
    font-family: 'Parkinsans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.affirmation-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Save Modal */
.save-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-overlay);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 12px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    width: 400px;
}

.save-modal.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-inner {
    text-align: center;
}

.modal-inner h3 {
    font-family: 'Parkinsans', sans-serif;
    margin-bottom: 1.5rem;
    animation: breatheText 3s ease-in-out infinite;
}

/* Location Status */
.location-status {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    background: var(--input-bg);
    transform: translateY(10px);
}

.location-status.saving {
    opacity: 1;
    transform: translateY(0);
    background: var(--button-gradient-start);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.location-status.saved {
    opacity: 1;
    transform: translateY(0);
    background: var(--button-gradient-end);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
    z-index: 999;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Logout Button */
.logout-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.logout-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
}

.logout-button:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .page-wrapper {
        width: 95%;
        margin: 1rem auto;
    }

    .affirmation-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .text-button {
        order: 2;
    }

    .save-modal {
        width: 90%;
        padding: 1.5rem;
    }

    .user-greeting {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .login-container {
        margin: 0 1rem;
    }

    .login-container h1 {
        font-size: 2rem;
    }

    .location-status {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
} 

/* Add mute button styles */
.mute-button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
}

.mute-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Update the h1 styling */
.page-wrapper h1 {
    font-family: 'Parkinsans', sans-serif;
    font-variation-settings: 'wght' 200;
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    animation: breatheText 10s ease-in-out infinite;
    text-align: center;
}

/* Make sure we have the breatheText animation defined */
@keyframes breatheText {
    0%, 100% {
        font-variation-settings: 'wght' 200;
        opacity: 0.8;
    }
    50% {
        font-variation-settings: 'wght' 800;
        opacity: 1;
    }
} 

/* Position theme toggle on the left */
.theme-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Keep logout container on the right */
.logout-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
} 

/* Update footer styles */
.footer {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    z-index: 10;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
} 

/* Update button styles for passphrase page */
.login-container .button {
    background: var(--bg-overlay);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-container .button:hover {
    transform: scale(1.05);
}

.login-container .button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
} 

/* Add these to your existing styles.css */
.form-footer {
    margin-top: 1rem;
    text-align: center;
}

.text-button {
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.text-button:hover {
    opacity: 1;
}

.input-group + .input-group {
    margin-top: 1rem;
} 

/* Add this specific style */
.passphrase-style {
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    padding: 15px !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(10px) !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2em !important;
    margin: 0 auto !important;
    display: block !important;
}

.passphrase-style::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    letter-spacing: 0.2em !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    transition: opacity 0.15s ease !important;
}

/* Hide placeholder on focus for both inputs */
.passphrase-style:focus::placeholder {
    opacity: 0 !important;
    color: transparent !important;
}

/* Make absolutely sure both inputs are identical */
.email-input,
.passphrase-input {
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
}

/* Update responsive styles */
@media (max-width: 600px) {
    .passphrase-style,
    .email-input,
    .passphrase-input {
        width: 350px !important;
        max-width: 350px !important;
        min-width: 350px !important;
        margin-bottom: 20px !important;
    }
    
    .input-group {
        width: 350px !important;
        max-width: 350px !important;
        margin: 0 auto 20px !important;
    }

    .button {
        margin-top: 10px !important;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .passphrase-style,
    .email-input,
    .passphrase-input {
        width: 90vw !important;
        max-width: 90vw !important;
        min-width: 90vw !important;
        margin-bottom: 20px !important;
    }
    
    .input-group {
        width: 90vw !important;
        max-width: 90vw !important;
        margin: 0 auto 20px !important;
    }

    .button {
        margin-top: 10px !important;
    }
} 

/* Add these styles */
.logout-button {
    text-decoration: none !important;
    color: var(--text-primary);
}

.user-greeting {
    text-align: center !important;
    font-family: 'Parkinsans', sans-serif !important;
    font-variation-settings: 'wght' 300 !important;
    font-size: 1.2rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 35px !important;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

/* Update responsive styles for greeting */
@media (max-width: 600px) {
    .user-greeting {
        font-size: 1rem !important;
        margin-bottom: 35px !important;
    }
} 