/* Premium Styling for VELASCO */
:root {
    /* Final brand beige */
    --beige: #f8f6ef; 
    --brand-grey: #c0c0c0;
    --text-primary: #1d1d1f; /* iOS dark text */
    --text-secondary: #86868b; /* iOS secondary text */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --ios-blur: blur(20px);
}

/* Footer Logo (Below Form) */
.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
}

.footer-logo {
    height: 40px; /* Small size */
    width: auto;
    filter: invert(0.8) sepia(0) saturate(0) hue-rotate(0deg); /* Achieve #c0c0c0 brand grey from black */
    opacity: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--beige);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem; /* More airy space */
    margin-bottom: 5rem;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-basic {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.02));
}

.logo-registered {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

main {
    max-width: 380px; /* Slimmer for iPhone */
    width: 100%;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: var(--glass-shadow);
    padding: 2rem 2.5rem; /* Tighter padding for mobile */
    transition: transform 0.3s ease;
}

#registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glass-input {
    width: 100%;
    padding: 0.9rem 1.4rem; /* Smaller padding */
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: inherit;
    font-size: 0.9rem; /* Smaller font */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    text-align: center;
}

.glass-input::placeholder {
    color: rgba(0, 0, 0, 0.25);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.glass-button {
    margin-top: 1.2rem;
    padding: 1rem; /* Smaller button */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.02rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.85rem; /* Smaller button font */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.glass-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.glass-button:active {
    transform: translateY(0) scale(0.98);
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .logo-basic { height: 80px; }
    .logo-registered { height: 28px; }
    .glass { padding: 2rem; }
}

/* Input and Tooltip Styles */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper .glass-input {
    padding-right: 45px;
}

.info-icon {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: rgba(60, 60, 60, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.info-icon:hover {
    color: rgba(60, 60, 60, 0.8);
    transform: scale(1.1);
}

.info-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #333;
    z-index: 100;
    transform-origin: bottom right;
    animation: tooltipFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-tooltip strong {
    color: #000;
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hidden {
    display: none !important;
}

.success-message {
    color: #2e7d32;
    margin-top: 1rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    #app {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .glass {
        padding: 1.5rem;
    }
}
