/* Authentication Page - Clean & Minimal Styles */

/* Homepage Styles */
.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    padding: 24px;
    position: relative;
}

.homepage-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.homepage-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.homepage-header p {
    color: #666666;
    font-size: 16px;
    margin-bottom: 32px;
}

.homepage-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.homepage-actions .btn {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 14px;
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    padding: 24px 24px 80px;
    position: relative;
}

.auth-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666666;
    font-size: 14px;
    margin: 0;
}

.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.tab-button.active {
    color: #59b774;
    border-bottom-color: #59b774;
}

.tab-button:hover {
    color: #1a1a1a;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-form.hidden {
    display: none;
}

.auth-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* Modal Styles for Auth Page */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    z-index: 10001;
    animation: modalFadeIn 0.2s ease-out;
}

.tutorial-modal-content {
    max-width: 900px;
    width: 90%;
}

.tutorial-modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000000;
}

.tutorial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background-color: #f3f4f6;
    color: #1a1a1a;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Footer Styles */
.app-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    background-color: #fafafa;
}

.app-footer p {
    margin: 0;
    font-size: 13px;
    color: #666666;
}

.app-footer a {
    color: #666666;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.15s ease;
    margin: 0 4px;
}

.app-footer a:hover {
    color: #333333;
    text-decoration: underline;
}

/* Responsive Design for Auth */
@media (max-width: 480px) {
    .homepage {
        padding: 16px 16px 80px;
    }

    .homepage-header h1 {
        font-size: 24px;
    }

    .homepage-header p {
        font-size: 14px;
    }

    .homepage-actions {
        flex-direction: column;
        width: 100%;
    }

    .homepage-actions .btn {
        width: 100%;
    }

    .app-footer {
        padding: 16px;
        font-size: 12px;
    }

    .auth-screen {
        padding: 16px 16px 80px;
    }
    
    .auth-container {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .tab-button {
        font-size: 13px;
        padding: 10px 12px;
    }

    .modal-content {
        width: 95%;
        margin: 0 16px;
    }

    .tutorial-modal-content {
        max-width: 95%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
} 