:root {
    --primary-color: #00cba9;
    --primary-gradient: linear-gradient(135deg, #00cba9 0%, #00a68a 100%);
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --input-bg: #f9fafb;
    --input-border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('../images/purrtrackbackground.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100vh;
}

/* Logo Area */
.logo-area { text-align: center; margin-bottom: 35px; }
.logo-circle {
    width: 84px; height: 84px;
    background-color: var(--card-bg);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 10px 30px rgba(0, 203, 169, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

h1 { margin: 0; color: white; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 500; }

/* Forms Container */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    width: 90%; max-width: 400px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-group { margin-bottom: 25px; }
.input-group input {
    width: 100%; padding: 12px 5px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    background: transparent;
    font-size: 15px; box-sizing: border-box;
    outline: none; transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: none;
}
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 600;
}
.input-group input:focus { 
    border-bottom: 2px solid var(--primary-color); 
    background: transparent; 
    box-shadow: 0 8px 10px -8px rgba(0, 203, 169, 0.8); 
}

/* Password Toggle Styles */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 35px; }
.toggle-icon {
    position: absolute; right: 5px; top: 50%;
    transform: translateY(-50%); cursor: pointer; color: rgba(255, 255, 255, 0.6);
}

/* Buttons */
.btn-primary {
    width: 100%; padding: 15px;
    background: var(--primary-gradient);
    color: white; border: none;
    border-radius: 16px;
    font-size: 16px; font-weight: bold;
    cursor: pointer; margin-top: 10px;
    box-shadow: 0 6px 20px rgba(0, 203, 169, 0.25);
    transition: all 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 203, 169, 0.6); filter: brightness(1.05); }
.btn-primary:active { transform: scale(0.98); }

.btn-google {
    width: 100%; padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; margin-top: 15px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease;
}
.btn-google:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Toggle Links */
.toggle-text {
    margin-top: 25px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.8);
}
.toggle-text span {
    color: var(--primary-color); font-weight: 700; cursor: pointer; transition: opacity 0.2s;
}
.toggle-text span:hover { opacity: 0.8; }

/* Hide/Show Logic */
.hidden { display: none; }

/* Loading Spinner */
.loader {
    display: none;
    border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color);
    border-radius: 50%; width: 30px; height: 30px;
    animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Modal Styles */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); z-index: 1000;
    justify-content: center; align-items: center; backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 85%; max-width: 350px;
    border-radius: 28px; padding: 30px 25px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* iOS Install Modal Animation */
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }