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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #e94560;
}

.mode-toggle {
    margin-bottom: 1rem;
}

.mode-toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #aaa;
    font-size: 0.9rem;
}

.mode-toggle input {
    display: none;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: #444;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.mode-toggle input:checked + .toggle-switch {
    background: #e94560;
}

.mode-toggle input:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.status {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #aaa;
    min-height: 1.5rem;
}

.record-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: #e94560;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.record-btn:active,
.record-btn.recording {
    transform: scale(0.95);
    background: #ff6b6b;
    box-shadow: 0 4px 30px rgba(233, 69, 96, 0.6);
}

.record-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: left;
    display: none;
}

.result.visible {
    display: block;
}

.result h3 {
    color: #e94560;
    margin-bottom: 0.5rem;
}

.result p {
    color: #ccc;
    line-height: 1.5;
}

.notes-list {
    margin-top: 2rem;
    text-align: left;
}

.notes-list h3 {
    color: #e94560;
    margin-bottom: 0.5rem;
}

.note-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.note-item h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.note-item p {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.record-btn.recording {
    animation: pulse 1s infinite;
}

.login-container {
    background: linear-gradient(165deg, #252540 0%, #1a1a2e 50%, #151525 100%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(233, 69, 96, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, #e94560, #ff6b6b);
    border-radius: 50%;
    margin: 0 auto 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 40px rgba(233, 69, 96, 0.4),
        0 0 0 4px rgba(233, 69, 96, 0.15);
    position: relative;
}

.login-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(233, 69, 96, 0.3);
    animation: iconRing 3s ease-in-out infinite;
}

@keyframes iconRing {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.login-icon svg {
    width: 44px;
    height: 44px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#loginForm input {
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
    color: #eee;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

#loginForm input::placeholder {
    color: #666;
}

#loginForm input:focus {
    outline: none;
    border-color: #e94560;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 0 4px rgba(233, 69, 96, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-btn {
    padding: 1.1rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(233, 69, 96, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 45px rgba(233, 69, 96, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header-row h1 {
    margin-bottom: 0;
}

.logout-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 0.85rem;
}

.logout-btn:hover {
    border-color: #e94560;
    color: #e94560;
}
